Browse Source

Fix ANT_LIB path so that it uses a valid ANT_HOME under Cygwin..

PR: 10664
Submitted by: patdtaylor2000@yahoo.com (Patrick Taylor)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273085 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
670c32326d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/script/ant

+ 3
- 3
src/script/ant View File

@@ -69,9 +69,6 @@ if [ -z "$ANT_HOME" ] ; then
cd $saveddir
fi

# set ANT_LIB location
ANT_LIB=${ANT_HOME}/lib

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$ANT_HOME" ] &&
@@ -82,6 +79,9 @@ if $cygwin ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi

# set ANT_LIB location
ANT_LIB=${ANT_HOME}/lib

if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then


Loading…
Cancel
Save