#!/bin/sh

CACHE_HOME=`dirname $0`
ANT_HOME=$CACHE_HOME/ant-dist

#CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/optional.jar:$ANT_HOME/lib/junit.jar:$JAVA_HOME/lib/tools.jar

# OS specific support (must be 'true' or 'false').
#cygwin=false;
#case "`uname`" in
#    CYGWIN*)
#        cygwin=true
#        ;;
#esac

#if [ $cygwin = "true" ]; then
# Note that JAVA_HOME evn needs to be set under cygwin explictly,
# /cygdrive/e:/j2sdkxxx, for this to work correctly. Otherwise,
# javac can't be located correctly.
#   CP=`cygpath -wp $CLASSPATH`
#else
#   CP=$CLASSPATH
#fi

#java -cp $CP org.apache.tools.ant.Main "$@"
$ANT_HOME/bin/ant "$@"

