> #!/bin/sh
> 
> check_jar() {
>       echo $1
>       jar tvf $1 | grep <filename>
> }
> 
> foreach i in `ls *.jar`
>       check_jar $i


that's just too complicated :) Use this simple command either in Unix or 
Cygwin:

find /path/to/jars -name "*.jar" -exec unzip -l {} \; > /tmp/jarfilelist

then view or search the file. The nice thing about this is that you can 
just run the above command whenever you add/update a jar in your 
repository then just open the file in your IDE/vi/emacs to quickly find 
something.


-Pratik


_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to