jon         00/12/12 21:20:09

  Modified:    .        bootstrap.sh
  Log:
  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.
  
  Revision  Changes    Path
  1.29      +6 -0      jakarta-ant/bootstrap.sh
  
  Index: bootstrap.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/bootstrap.sh,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- bootstrap.sh      2000/12/05 07:14:14     1.28
  +++ bootstrap.sh      2000/12/13 05:20:08     1.29
  @@ -17,6 +17,12 @@
     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"`
  
  
  

Reply via email to