Maybe I'm just having a brain dead day but, what is the easiest/best way to get the contents of all jars in a given directory?
I'm running into a classpath/loader conflict so I want a way to get a list of the entire contents of all the jars to find my problem. I know that there are some tools that will help with this but, for the life of me, I can't think of any of them.
Any thoughts?
EDIT:
For reference, here's what I've been doing (this is broken up for readability but I just do it all on one line as a shell script):
OUTFILE=/tmp/allClasses.txt ;
touch $OUTFILE;
for file in *.jar;
do echo " === $file " >> $OUTFILE;
jar -tf $file >> $OUTFILE;
done;
This seems to work pretty well but it just feels clunky.
For reference, here's what I've been doing:
touch /tmp/allClasses.txt ; for file in *.jar ; do echo " === $file " >> /tmp/allClasses.txt ; jar -tf $file >> /tmp/allClasses.txt ; done;
This seems to work pretty well but it just feels clunky.