2002-01-30 21:22:28 -05:00
|
|
|
#!/bin/sh
|
2002-03-16 12:08:00 -05:00
|
|
|
# ----- Verify and Set Required Environment Variables -------------------------
|
|
|
|
|
|
|
|
if [ "$JAVA_HOME" = "" ] ; then
|
|
|
|
echo You must set JAVA_HOME to point at your Java Development Kit installation
|
|
|
|
exit 1
|
|
|
|
fi
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-03-14 06:05:10 -05:00
|
|
|
chmod u+x ./tools/ant/bin/antRun
|
|
|
|
chmod u+x ./tools/ant/bin/ant
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-03-16 12:08:00 -05:00
|
|
|
# ----- Verify and Set Required Environment Variables -------------------------
|
|
|
|
|
|
|
|
if [ "$TERM" = "cygwin" ] ; then
|
|
|
|
S=';'
|
|
|
|
else
|
|
|
|
S=':'
|
|
|
|
fi
|
|
|
|
|
|
|
|
# ----- Set Up The Runtime Classpath ------------------------------------------
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-03-14 06:05:10 -05:00
|
|
|
OLD_ANT_HOME=$ANT_HOME
|
2002-01-30 21:22:28 -05:00
|
|
|
unset ANT_HOME
|
|
|
|
|
|
|
|
CP=$CLASSPATH
|
|
|
|
export CP
|
|
|
|
unset CLASSPATH
|
|
|
|
|
2002-03-16 12:08:00 -05:00
|
|
|
CLASSPATH="`echo ./lib/endorsed/*.jar | tr ' ' $S``echo ./tools/centipede/lib/*.jar | tr ' ' $S`"
|
2002-03-14 06:05:10 -05:00
|
|
|
export CLASSPATH
|
|
|
|
|
|
|
|
$PWD/./tools/ant/bin/ant -listener org.apache.tools.ant.XmlLogger $@
|
|
|
|
|
|
|
|
unset CLASSPATH
|
2002-01-30 21:22:28 -05:00
|
|
|
|
|
|
|
CLASSPATH=$CP
|
|
|
|
export CLASSPATH
|
2002-03-14 06:05:10 -05:00
|
|
|
ANT_HOME=OLD_ANT_HOME
|
|
|
|
export ANT_HOME
|