Browse Source

make sure JAVA_HOME and ANT_HOME are set before passing them to cygpath. PR 45245.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@683961 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
105c2b80c1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/script/ant

+ 2
- 2
src/script/ant View File

@@ -251,9 +251,9 @@ if $cygwin; then
else
format=windows
fi
ANT_HOME=`cygpath --$format "$ANT_HOME"`
[ -n "$ANT_HOME" ] && ANT_HOME=`cygpath --$format "$ANT_HOME"`
ANT_LIB=`cygpath --$format "$ANT_LIB"`
JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
if [ -n "$CLASSPATH" ] ; then


Loading…
Cancel
Save