larryi 01/08/30 08:15:15
Modified: src/shell tomcat.bat
Log:
Back out change for jspc. Problem was in Jspc.java, not in needing the
environment set.
Revision Changes Path
1.40 +7 -8 jakarta-tomcat/src/shell/tomcat.bat
Index: tomcat.bat
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/shell/tomcat.bat,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- tomcat.bat 2001/08/30 11:42:55 1.39
+++ tomcat.bat 2001/08/30 15:15:15 1.40
@@ -29,7 +29,7 @@
rem Tomcat, refer to the Tomcat Users Guide (tomcat_ug.html found
rem in the "doc" directory.
rem
-rem $Id: tomcat.bat,v 1.39 2001/08/30 11:42:55 larryi Exp $
+rem $Id: tomcat.bat,v 1.40 2001/08/30 15:15:15 larryi Exp $
rem -------------------------------------------------------------------------
@@ -102,7 +102,7 @@
if "%1" == "stop" goto stopServer
if "%1" == "run" goto runServer
if "%1" == "env" goto doEnv
-if "%1" == "jspc" goto doEnv
+if "%1" == "jspc" goto runJspc
if "%1" == "enableAdmin" goto enableAdmin
if "%1" == "estart" goto estart
@@ -164,6 +164,11 @@
%_RUNJAVA% %TOMCAT_OPTS% -Dtomcat.home=%TOMCAT_HOME% %_MAIN% stop %2 %3 %4 %5 %6 %7
%8 %9
goto cleanup
+:runJspc
+rem Run JSPC in Tomcat's Environment
+%_RUNJAVA% %JSPC_OPTS% -Dtomcat.home=%TOMCAT_HOME% %_MAIN% jspc %2 %3 %4 %5 %6 %7
%8 %9
+goto cleanup
+
rem ----- Set CLASSPATH to Tomcat's Runtime Environment -----------------------
:doEnv
@@ -190,7 +195,6 @@
echo Setting your CLASSPATH to Tomcat's runtime set of jars.
rem Note: _LIBJARS already contains a leading semicolon
set CLASSPATH=%CLASSPATH%%_LIBJARS%
-if "%1" == "jspc" goto runJspc
goto finish
:staticClasspath
@@ -213,12 +217,7 @@
if exist "%TOMCAT_HOME%\lib\common\servlet.jar" set
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\common\servlet.jar
if exist "%TOMCAT_HOME%\lib\common\tomcat_core.jar" set
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\common\tomcat_core.jar
-if "%1" == "jspc" goto runJspc
goto finish
-
-:runJspc
-rem Run JSPC in Tomcat's Environment
-%_RUNJAVA% %JSPC_OPTS% -Dtomcat.home=%TOMCAT_HOME% %_MAIN% jspc %2 %3 %4 %5 %6 %7
%8 %9
rem ----- Restore Environment Variables ---------------------------------------