Lance attached is a script which searches for a file in a directory of
jars. To invoke:
findinjar "Catalog" $AS_HOME/lib
This will search for "Catalog" in all jars in the given directory.
Its a useful script that we wrote. It comes in handy.
alan
On 11/04/08 08:46, Lance Andersen wrote:
> thanks, I looked in fisheye for jaxb but did not see it.
>
> On Nov 4, 2008, at 8:04 AM, Alan Frechette wrote:
>
>> I believe its in jaxb-xjc.jar
>>
>>
>> alan
>>
>>
>> On 11/04/08 07:06, Lance Andersen wrote:
>>> Hi All,
>>> Could someone please let me know where
>>> com.sun.org.apache.xml.internal.resolver.Catalog resides? I am not
>>> sure which workspace/group owns this and we have a bug report against
>>> this.
>>> Regards
>>> Lance
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
#!/bin/ksh +x
if [ $# -ne 2 ]; then
echo "Usage: findinjar <search_string> <dir>"
exit 1
else
dir=$2
if [ ! -d $dir ]; then
echo "Error: $dir is not a directory."
echo "Usage: findinjar <search_string> <dir>."
exit 1
else
echo "BEGIN sweep changes on directory [$dir]."
echo "`date`"
echo
fi
search_string=$1
fi
echo "Search jars in directory $dir for $search_string"
filelist=/tmp/findinjars
rm -rf $filelist
find $dir -name "*.jar" > $filelist
echo
for item in `cat $filelist`
do
file=`basename $item`
dir=`dirname $item`
cd $dir
echo "file $file"
jar -tvf $file | grep $search_string
done