Browse Source

Make sure CLASSPATH is set before attempting to change it;

make sure --mixed option is available to cygpath before using it.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276435 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 21 years ago
parent
commit
368ee310b2
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/script/ant

+ 4
- 2
src/script/ant View File

@@ -224,7 +224,7 @@ fi

# For Cygwin, switch paths to appropriate format before running java
if $cygwin; then
if [ "$OS" = "Windows_NT" ] ; then
if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
format=mixed
else
format=windows
@@ -233,7 +233,9 @@ if $cygwin; then
ANT_LIB=`cygpath --$format "$ANT_LIB"`
JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
LOCALCLASSPATH=`cygpath --path --$format "$LOCALCLASSPATH"`
CLASSPATH=`cygpath --path --$format "$OCALCLASSPATH"`
if [ -n "$CLASSPATH" ] ; then
CLASSPATH=`cygpath --path --$format "$CLASSPATH"`
fi
CYGHOME=`cygpath --$format "$HOME"`
fi



Loading…
Cancel
Save