tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/shell tomcat.bat
Date Fri, 31 Mar 2000 18:45:08 GMT
craigmcc    00/03/31 10:45:08

  Modified:    src/shell tomcat.bat
  Log:
  Duplicate the guessing of TOMCAT_HOME that is used in "startup.bat" and
  "shutdown.bat" for users that invoke "tomcat.bat" directly (bug 113).
  JAVA_HOME is still required under some circumstances (Java2 platform,
  tools.jar not already on the classpath) but it's better than it was.
  
  PR:113
  
  Revision  Changes    Path
  1.17      +19 -0     jakarta-tomcat/src/shell/tomcat.bat
  
  Index: tomcat.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/shell/tomcat.bat,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- tomcat.bat	2000/03/25 01:11:17	1.16
  +++ tomcat.bat	2000/03/31 18:45:08	1.17
  @@ -4,6 +4,24 @@
   rem This batch file written and tested under Windows NT
   rem Improvements to this file are welcome
   
  +rem Guess TOMCAT_HOME if it is not present
  +
  +if not "%TOMCAT_HOME%" == "" goto gothome
  +
  +SET TOMCAT_HOME=.
  +if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome
  +
  +SET TOMCAT_HOME=..
  +if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome
  +
  +SET TOMCAT_HOME=
  +echo Unable to determine the value of TOMCAT_HOME.
  +goto eof
  +
  +:gothome
  +
  +rem Set up the CLASSPATH that we need
  +
   set cp=%CLASSPATH%
   
   set CLASSPATH=.
  @@ -87,3 +105,4 @@
   set cp=
   
   rem pause
  +:eof
  
  
  

Mime
View raw message