From 83adaf1a2e46b6963462a2cee2faa62a0d1ca0df Mon Sep 17 00:00:00 2001 From: Jon Scott Stevens Date: Wed, 13 Dec 2000 05:20:08 +0000 Subject: [PATCH] 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 --- bootstrap.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 6694b3560..c4eb1eae6 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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"`