From 8f921179b136af6580b450e96e3a83cfb7e0acd3 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 19 Jun 2004 06:52:40 +0000 Subject: [PATCH] Let there be one ant script. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3035 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- bin/ant | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100755 bin/ant diff --git a/bin/ant b/bin/ant deleted file mode 100755 index 88e932aa3..000000000 --- a/bin/ant +++ /dev/null @@ -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