Updated Ant scripts to latest versions with numerous fixes.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352542 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicola Ken Barozzi 2002-04-28 21:12:06 +00:00
parent 13d10c73c4
commit 386d0a8a66
1 changed files with 6 additions and 7 deletions

View File

@ -85,12 +85,12 @@ if [ -n "$CLASSPATH" ] ; then
fi fi
# add in the dependency .jar files # add in the dependency .jar files
DIRLIBS=${ANT_HOME}/lib/*.jar DIRLIBS="${ANT_HOME}"/lib
for i in ${DIRLIBS} for i in "${DIRLIBS}"/*.jar
do do
# if the directory is empty, then it will return the input string # if the directory is empty, then it will return the input string
# this is stupid, so case for it # this is stupid, so case for it
if [ "$i" != "${DIRLIBS}" ] ; then if [ "$i" != "${DIRLIBS}/*.jar" ] ; then
if [ -z "$LOCALCLASSPATH" ] ; then if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH=$i LOCALCLASSPATH=$i
else else
@ -128,11 +128,10 @@ fi
# supply JIKESPATH to Ant as jikes.class.path # supply JIKESPATH to Ant as jikes.class.path
if [ -n "$JIKESPATH" ] ; then if [ -n "$JIKESPATH" ] ; then
if [ -n "$ANT_OPTS" ] ; then if $cygwin ; then
ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH" JIKESPATH=`cygpath --path --windows "$JIKESPATH"`
else
ANT_OPTS=-Djikes.class.path=$JIKESPATH
fi fi
ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH"
fi fi
# For Cygwin, switch paths to Windows format before running java # For Cygwin, switch paths to Windows format before running java