text
stringlengths
0
834k
rem It can also be used to update the XML parser implementation.
rem Defaults to $CATALINA_HOME/endorsed.
rem
rem JPDA_TRANSPORT (Optional) JPDA transport used when the ""jpda start""
rem command is executed. The default is ""dt_socket"".
rem
rem JPDA_ADDRESS (Optional) Java runtime options used when the ""jpda start""
rem command is executed. The default is 8000.
rem
rem JPDA_SUSPEND (Optional) Java runtime options used when the ""jpda start""
rem command is executed. Specifies whether JVM should suspend
rem execution immediately after startup. Default is ""n"".
rem
rem JPDA_OPTS (Optional) Java runtime options used when the ""jpda start""
rem command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
rem and JPDA_SUSPEND are ignored. Thus, all required jpda
rem options MUST be specified. The default is:
rem
rem -agentlib:jdwp=transport=%JPDA_TRANSPORT%,
rem address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
rem
rem LOGGING_CONFIG (Optional) Override Tomcat's logging config file
rem Example (all one line)
rem set LOGGING_CONFIG=""-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties""
rem
rem LOGGING_MANAGER (Optional) Override Tomcat's logging manager
rem Example (all one line)
rem set LOGGING_MANAGER=""-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager""
rem
rem TITLE (Optional) Specify the title of Tomcat window. The default
rem TITLE is Tomcat if it's not specified.
rem Example (all one line)
rem set TITLE=Tomcat.Cluster#1.Server#1 [%DATE% %TIME%]
rem ---------------------------------------------------------------------------
setlocal
rem Suppress Terminate batch job on CTRL+C
if not """"%1"""" == """"run"""" goto mainEntry
if ""%TEMP%"" == """" goto mainEntry
if exist ""%TEMP%\%~nx0.run"" goto mainEntry
echo Y>""%TEMP%\%~nx0.run""
if not exist ""%TEMP%\%~nx0.run"" goto mainEntry
echo Y>""%TEMP%\%~nx0.Y""
call ""%~f0"" %* <""%TEMP%\%~nx0.Y""
rem Use provided errorlevel
set RETVAL=%ERRORLEVEL%
del /Q ""%TEMP%\%~nx0.Y"" >NUL 2>&1
exit /B %RETVAL%
:mainEntry
del /Q ""%TEMP%\%~nx0.run"" >NUL 2>&1
rem Guess CATALINA_HOME if not defined
set ""CURRENT_DIR=%cd%""
if not ""%CATALINA_HOME%"" == """" goto gotHome
set ""CATALINA_HOME=%CURRENT_DIR%""
if exist ""%CATALINA_HOME%\bin\catalina.bat"" goto okHome
cd ..
set ""CATALINA_HOME=%cd%""
cd ""%CURRENT_DIR%""
:gotHome
if exist ""%CATALINA_HOME%\bin\catalina.bat"" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome
rem Copy CATALINA_BASE from CATALINA_HOME if not defined
if not ""%CATALINA_BASE%"" == """" goto gotBase
set ""CATALINA_BASE=%CATALINA_HOME%""
:gotBase
rem Ensure that any user defined CLASSPATH variables are not used on startup,
rem but allow them to be specified in setenv.bat, in rare case when it is needed.
set CLASSPATH=
rem Get standard environment variables
if not exist ""%CATALINA_BASE%\bin\setenv.bat"" goto checkSetenvHome
call ""%CATALINA_BASE%\bin\setenv.bat""
goto setenvDone
:checkSetenvHome
if exist ""%CATALINA_HOME%\bin\setenv.bat"" call ""%CATALINA_HOME%\bin\setenv.bat""
:setenvDone
rem Get standard Java environment variables
if exist ""%CATALINA_HOME%\bin\setclasspath.bat"" goto okSetclasspath
echo Cannot find ""%CATALINA_HOME%\bin\setclasspath.bat""
echo This file is needed to run this program
goto end
:okSetclasspath
call ""%CATALINA_HOME%\bin\setclasspath.bat"" %1
if errorlevel 1 goto end
rem Add on extra jar file to CLASSPATH
rem Note that there are no quotes as we do not want to introduce random
rem quotes into the CLASSPATH
if ""%CLASSPATH%"" == """" goto emptyClasspath
set ""CLASSPATH=%CLASSPATH%;""
:emptyClasspath