tool-wrapper.bat
上传用户:bj_pst
上传日期:2019-07-07
资源大小:7353k
文件大小:3k
- @echo off
- if "%OS%" == "Windows_NT" setlocal
- rem ---------------------------------------------------------------------------
- rem Wrapper script for command line tools
- rem
- rem Environment Variable Prequisites
- rem
- rem CATALINA_HOME May point at your Catalina "build" directory.
- rem
- rem TOOL_OPTS (Optional) Java runtime options used when the "start",
- rem "stop", or "run" command is executed.
- rem
- rem JAVA_HOME Must point at your Java Development Kit installation.
- rem
- rem JAVA_OPTS (Optional) Java runtime options used when the "start",
- rem "stop", or "run" command is executed.
- rem
- rem $Id: tool-wrapper.bat 795036 2009-07-17 10:47:46Z markt $
- rem ---------------------------------------------------------------------------
- rem Guess CATALINA_HOME if not defined
- if not "%CATALINA_HOME%" == "" goto gotHome
- set CATALINA_HOME=.
- if exist "%CATALINA_HOME%bintool-wrapper.bat" goto okHome
- set CATALINA_HOME=..
- :gotHome
- if exist "%CATALINA_HOME%bintool-wrapper.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 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 exist "%CATALINA_HOME%binsetenv.bat" call "%CATALINA_HOME%binsetenv.bat"
- rem Get standard Java environment variables
- if exist "%CATALINA_HOME%binsetclasspath.bat" goto okSetclasspath
- echo Cannot find %CATALINA_HOME%binsetclasspath.bat
- echo This file is needed to run this program
- goto end
- :okSetclasspath
- set BASEDIR=%CATALINA_HOME%
- call "%CATALINA_HOME%binsetclasspath.bat"
- rem Add on extra jar files 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 noclasspath
- set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%binbootstrap.jar;%BASEDIR%libservlet-api.jar
- goto okclasspath
- :noclasspath
- set CLASSPATH=%CATALINA_HOME%binbootstrap.jar;%BASEDIR%libservlet-api.jar
- :okclasspath
- rem Get remaining unshifted command line arguments and save them in the
- set CMD_LINE_ARGS=
- :setArgs
- if ""%1""=="""" goto doneSetArgs
- set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
- shift
- goto setArgs
- :doneSetArgs
- %_RUNJAVA% %JAVA_OPTS% %TOOL_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.home="%CATALINA_HOME%" org.apache.catalina.startup.Tool %CMD_LINE_ARGS%
- :end