gudii9
asked on
jar file search
Hi,
I have a specific word (let us say xyz) that i need to search in my jar file within one javascript file. I have about 500 jar files in my eclipse workspace environment.
Eclipse i searched on file search but says 0 words found
please advise
Any links resources ideas highly appreciated. Thanks in advance
I have a specific word (let us say xyz) that i need to search in my jar file within one javascript file. I have about 500 jar files in my eclipse workspace environment.
Eclipse i searched on file search but says 0 words found
please advise
Any links resources ideas highly appreciated. Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why are javascripts in the jar file(s)?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the primefaces-3.4 jar has printer.js which has lot of jQuery code in that as below.The code in the printer.js looks as below
when i search for text 'b.fn.jqprint.defaults' in same way it cannot find the text in jars. can you please advise
(function(b){var a;b.fn.jqprint=function(d){a=b.extend({},b.fn.jqprint.defaults,d);var c=(this instanceof jQuery)?this:b(this);if(a.operaSupport&&b.browser.opera){var e=window.open("","jqPrint-preview");e.document.open();var g=e.document}else{var f=b("<iframe />");if(!a.debug){f.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"})}f.appendTo("body");var g=f[0].contentWindow.document}if(a.importCSS){if(b("link[media=print]").length>0){b("link[media=print]").each(function(){g.write("<link type='text/css' rel='stylesheet' href='"+b(this).attr("href")+"' media='print' />")})}else{b("link").each(function(){g.write("<link type='text/css' rel='stylesheet' href='"+b(this).attr("href")+"' />")})}}if(a.printContainer){g.write(c.outer())}else{c.each(function(){g.write(b(this).html())})}g.close();(a.operaSupport&&b.browser.opera?e:f[0].contentWindow).focus();setTimeout(function(){(a.operaSupport&&b.browser.opera?e:f[0].contentWindow).print();if(e){e.close()}},1000)};b.fn.jqprint.defaults={debug:false,importCSS:true,printContainer:true,operaSupport:true};jQuery.fn.outer=function(){return b(b("<div></div>").html(this.clone())).html()}})(jQuery);
when i search for text 'b.fn.jqprint.defaults' in same way it cannot find the text in jars. can you please advise
ASKER
I tried to search as
b\.fn\.jqprint\.defaults
and
b/.fn/.jqprint/.defaults
that also did not work. please advise
b\.fn\.jqprint\.defaults
and
b/.fn/.jqprint/.defaults
that also did not work. please advise
ASKER
when i search on defaults alone it did search in jar file too...not sure why it is not searching with multiple words with dots in between. please advise
JarSeachDefaults.jpg
JarSeachDefaults.jpg
b.*fn.*jqprint.*defaults
Try the above with 'Regular expressions' checked
ASKER
I tried
b.*fn.*jqprint.*defaults
It is not working either. please advise
b.*fn.*jqprint.*defaults
It is not working either. please advise
That pattern is in printer.js
ASKER
I know it is there but I wonder why it did not find in the search.
I searched on
b.*fn.*jqprint.*defaults
with/without regular expression check box. still did not work. what is the importance of Regular Expression check box? Please advise
I searched on
b.*fn.*jqprint.*defaults
with/without regular expression check box. still did not work. what is the importance of Regular Expression check box? Please advise
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
can you please send me screenshot of how you are searching in eclipse for confirmation that i am doing correct way.