Friday, March 21, 2008

Finding stuff in jars

My coworker gave me a nice command to use when looking for certain classes in a set of jar files. This will recursively process each jar file in the current directory, and list the contents in search_jars.txt

find . -name \*jar -exec unzip -l {} \; > search_jars.txt

Then you can look in search_jars to find out where class files or other stuff is coming from.

No comments: