Whoever out there needs to find something in a jar under linux:

for i in `find $JBOSS_HOME -name \*.jar`; do echo $i; jar tf $i | grep 
ServiceMBeanSupport; done

Because jar does not take a list of jar's to explode. The above builds up a 
list of all jars below $JBOSS_HOME and passes it one by one into $i. The script 
echo's $i and the grep echo's something if it finds the required text. One line 
above the grep's output, you'll find the path of the jar that contains it.

Don't forget to set JBOSS_HOME to the appropriate directory and to substitute 
"ServiceMBeanSupport" with the name you're searching for.

(Works well under cygwin)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860450#3860450

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860450


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to