patrickl    02/02/05 10:00:20

  Modified:    catalina/src/bin setclasspath.sh
  Log:
  Add checking for all of the other tools in JAVA_HOME that the other scripts use
  
  Revision  Changes    Path
  1.3       +3 -2      jakarta-tomcat-4.0/catalina/src/bin/setclasspath.sh
  
  Index: setclasspath.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/bin/setclasspath.sh,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- setclasspath.sh   30 Jan 2002 23:01:50 -0000      1.2
  +++ setclasspath.sh   5 Feb 2002 18:00:20 -0000       1.3
  @@ -1,7 +1,7 @@
   # -----------------------------------------------------------------------------
   #  Set CLASSPATH and Java options
   #
  -#  $Id: setclasspath.sh,v 1.2 2002/01/30 23:01:50 patrickl Exp $
  +#  $Id: setclasspath.sh,v 1.3 2002/02/05 18:00:20 patrickl Exp $
   # -----------------------------------------------------------------------------
   
   # Make sure prerequisite environment variables are set
  @@ -10,7 +10,7 @@
     echo "This environment variable is needed to run this program"
     exit 1
   fi
  -if [ ! -r "$JAVA_HOME"/bin/java ]; then
  +if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/jdb -o ! -r 
"$JAVA_HOME"/bin/javac ]; then
     echo "The JAVA_HOME environment variable is not defined correctly"
     echo "This environment variable is needed to run this program"
     exit 1
  @@ -49,3 +49,4 @@
   # Set standard commands for invoking Java.
   _RUNJAVA="$JAVA_HOME"/bin/java
   _RUNJDB="$JAVA_HOME"/bin/jdb
  +_RUNJAVAC="$JAVA_HOME"/bin/javac
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to