diff options
author | Jon Scott Stevens <jon@apache.org> | 2000-12-13 05:20:08 +0000 |
---|---|---|
committer | Jon Scott Stevens <jon@apache.org> | 2000-12-13 05:20:08 +0000 |
commit | 83adaf1a2e46b6963462a2cee2faa62a0d1ca0df (patch) | |
tree | 08cc8b9e44b90e71e46e113cbb7701d3b84f0c08 /bootstrap.sh | |
parent | d27a0a037f226054c4393fd2f3d0fa5140eae372 (diff) | |
download | ant-83adaf1a2e46b6963462a2cee2faa62a0d1ca0df.tar.gz |
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
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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"` |