buildSamples.sh

#!/bin/bash

## You need to set 2 env variables : AXISHOME and JAVAHOME,
## or modify the 3 values here

rm -f samples.jar
rm -f apputils.jar

cd com/vmware/samples
for i in alarms events general host httpfileaccess performance scheduling scsilun version vm
do
rm -f $i/*.class
done

cd com/vmware/apputils
for i in vim vim25
do
rm -f $i/*.class
done

echo Done cleaning class files.

cd ../../..

echo Compiling apputil
find ./com/vmware/apputils -depth -name ‘*.java’ -print > files.txt
javac -classpath “${CLASSPATH}”:vim.jar @files.txt
find ./com/vmware/apputils -depth -name ‘*.class’ -print > files.txt
jar cf ./apputils.jar @files.txt
echo Done compiling apputil

echo Compiling samples
find ./com/vmware/samples -depth -name ‘*.java’ -print > files.txt
javac -classpath “${CLASSPATH}”:vim.jar @files.txt
find ./com/vmware/samples -depth -name ‘*.class’ -print > files.txt
jar cf ./samples.jar @files.txt
rm files.txt

echo Done.

One Response to “buildSamples.sh”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.