Wednesday, October 7, 2009

Finding Classes In Multiple Jars or Directories

Very simple find with xargs as the icing on top, in this example we are looking for the package webservices.
find . -name '*.jar' | xargs -i{} -t jar tfv {} | grep -i webservices
If you have a problem and do not have access to the jar utility an alternative could be and also ITS BLAZINGLY FASTER
$ find . -name '*.jar' | xargs -i{} -t unzip -l {} | grep -i sun.awt.X11GraphicsEnvironment

No comments:

Post a Comment