Browse Source

Patched ant to run under Cygwin. Patch supplied by Peter Seibel <peter@javamonkey.com>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268289 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
fff6d5a32a
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      src/bin/ant

+ 11
- 0
src/bin/ant View File

@@ -4,6 +4,12 @@ if [ -f $HOME/.antrc ] ; then
. $HOME/.antrc
fi

# Cygwin support.
if [ "$OSTYPE" == 'cygwin32' ]; then
ANT_HOME=`cygpath -u $ANT_HOME`
JAVA_HOME=`cygpath -u $JAVA_HOME`
fi

if [ "$ANT_HOME" = "" ] ; then
# try to find ANT
if [ -d /opt/ant ] ; then
@@ -67,5 +73,10 @@ if [ "$JIKESPATH" != "" ] ; then
fi
fi

# More Cygwin support
if [ "$OSTYPE" == 'cygwin32' ]; then
LOCALCLASSPATH=`cygpath -p -w "$LOCALCLASSPATH"`
fi

$JAVACMD -classpath $LOCALCLASSPATH -Dant.home=${ANT_HOME} $ANT_OPTS org.apache.tools.ant.Main $@


Loading…
Cancel
Save