Browse Source

since we depend on JAVA_HOME/bin/java to exist later in the script,

then we should check to make sure we can actually see the file
correctly.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268346 13f79535-47bb-0310-9956-ffa450edef68
master
Jon Scott Stevens 24 years ago
parent
commit
83adaf1a2e
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      bootstrap.sh

+ 6
- 0
bootstrap.sh View File

@@ -17,6 +17,12 @@ else
echo " to the installation directory of java."
fi

if [ ! -f "$JAVA_HOME/bin/java" ] ; then
echo "Error: JAVA_HOME is not defined correctly."
echo " We were unable to locate JAVA_HOME/bin/java"
exit
fi

# More Cygwin support
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`


Loading…
Cancel
Save