Let there be one ant script.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3035 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,51 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# $Id: ant,v 1.4 2003/10/06 21:24:29 mdb Exp $
|
|
||||||
#
|
|
||||||
# Invokes our desired version of ant with all of our jar files in the
|
|
||||||
# classpath.
|
|
||||||
|
|
||||||
BINDIR=`dirname $0`
|
|
||||||
|
|
||||||
# process our arguments
|
|
||||||
while [ ! -z "$1" ]; do
|
|
||||||
case "$1" in
|
|
||||||
-Dbuild.compiler=*)
|
|
||||||
ANT_COMPILER="$1"
|
|
||||||
;;
|
|
||||||
-D*)
|
|
||||||
ANT_OPTS="$ANT_OPTS $1"
|
|
||||||
;;
|
|
||||||
-d)
|
|
||||||
ANT_OPTS="$ANT_OPTS -Dbuild.optimize=off"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ARGS="$ARGS $1"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
# Load default settings from config file (if it exists)
|
|
||||||
if [ -f "$HOME/.antrc" ]; then
|
|
||||||
. "$HOME/.antrc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# add all JAR files in JAVA_LIBS to CLASSPATH
|
|
||||||
SYSTEMCP=`echo $JAVA_LIBS/*.jar | tr ' ' ':'`
|
|
||||||
|
|
||||||
# add all JAR files in the project libraries directory to CLASSPATH
|
|
||||||
PROJECTCP=`echo $BINDIR/../lib/*.jar | tr ' ' ':'`
|
|
||||||
|
|
||||||
# also the project jar file
|
|
||||||
PROJECTJAR=`echo $BINDIR/../dist/*.jar | tr ' ' ':'`
|
|
||||||
|
|
||||||
if [ "$CLASSPATH" ] ; then
|
|
||||||
CLASSPATH="$PROJECTJAR:$PROJECTCP:$SYSTEMCP:$CLASSPATH"
|
|
||||||
else
|
|
||||||
CLASSPATH="$PROJECTJAR:$PROJECTCP:$SYSTEMCP"
|
|
||||||
fi
|
|
||||||
export CLASSPATH
|
|
||||||
|
|
||||||
$JAVA_HOME/bin/java $ANT_COMPILER $ANT_OPTS -Dant.home=/usr/share/ant \
|
|
||||||
org.apache.tools.ant.Main $ARGS
|
|
||||||
Reference in New Issue
Block a user