Browse Source

Moved conversion of ANT_HOME to after the 'try to find ANT' section as suggested in Bug# 1479 by Daniel.Barclay@digitalfocus.com

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269290 13f79535-47bb-0310-9956-ffa450edef68
master
Nico Seessle 24 years ago
parent
commit
168f6c9ebd
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      src/script/ant

+ 10
- 10
src/script/ant View File

@@ -12,16 +12,6 @@ case "`uname`" in
Darwin*) darwin=true ;; Darwin*) darwin=true ;;
esac esac


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

if [ -z "$ANT_HOME" ] ; then if [ -z "$ANT_HOME" ] ; then
# try to find ANT # try to find ANT
if [ -d /opt/ant ] ; then if [ -d /opt/ant ] ; then
@@ -50,6 +40,16 @@ if [ -z "$ANT_HOME" ] ; then


fi fi


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

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


Loading…
Cancel
Save