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-04-03 12:06:10 -05:00
|
|
|
chmod u+x ./tools/antipede/bin/antRun
|
|
|
|
chmod u+x ./tools/antipede/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-04-03 12:06:10 -05:00
|
|
|
CLASSPATH="`echo ./lib/endorsed/*.jar | tr ' ' $S`"
|
2002-03-14 06:05:10 -05:00
|
|
|
export CLASSPATH
|
|
|
|
|
2002-04-09 12:02:48 -04:00
|
|
|
echo Using classpath: \"$CLASSPATH\"
|
2002-04-08 09:25:58 -04:00
|
|
|
$PWD/./tools/antipede/bin/ant -emacs $@
|
2002-03-14 06:05:10 -05:00
|
|
|
|
|
|
|
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
|