Translations of this page:

findJar

A little shell script to find a class in a java file

Usage

$ findJar.sh <class name>

# David B George 2012
echo -n "Searching:"
find . -name "*.jar" -print | while read file
do
	jar tvf $file | grep "$1" >/dev/null 2>&1
	if [[ $? == 0 ]]
	then
		echo "\n$file"
	else
		echo -n .
	fi
done
tech/java/find-classes-in-jars.txt · Last modified: 2012/01/10 13:20 by davidof
Recent changes RSS feed