Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 1 | @echo off
|
| 2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
|
| 3 | rem contributor license agreements. See the NOTICE file distributed with
|
| 4 | rem this work for additional information regarding copyright ownership.
|
| 5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
|
| 6 | rem (the "License"); you may not use this file except in compliance with
|
| 7 | rem the License. You may obtain a copy of the License at
|
| 8 | rem
|
| 9 | rem http://www.apache.org/licenses/LICENSE-2.0
|
| 10 | rem
|
| 11 | rem Unless required by applicable law or agreed to in writing, software
|
| 12 | rem distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 | rem See the License for the specific language governing permissions and
|
| 15 | rem limitations under the License.
|
| 16 |
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 17 | rem ---------------------------------------------------------------------------
|
| 18 | rem Start/Stop Script for the CATALINA Server
|
| 19 | rem
|
| 20 | rem Environment Variable Prerequisites
|
| 21 | rem
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 22 | rem Do not set the variables in this script. Instead put them into a script
|
| 23 | rem setenv.bat in CATALINA_BASE/bin to keep your customizations separate.
|
| 24 | rem
|
| 25 | rem WHEN RUNNING TOMCAT AS A WINDOWS SERVICE:
|
| 26 | rem Note that the environment variables that affect the behavior of this
|
| 27 | rem script will have no effect at all on Windows Services. As such, any
|
| 28 | rem local customizations made in a CATALINA_BASE/bin/setenv.bat script
|
| 29 | rem will also have no effect on Tomcat when launched as a Windows Service.
|
| 30 | rem The configuration that controls Windows Services is stored in the Windows
|
| 31 | rem Registry, and is most conveniently maintained using the "tomcatXw.exe"
|
| 32 | rem maintenance utility, where "X" is the major version of Tomcat you are
|
| 33 | rem running.
|
| 34 | rem
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 35 | rem CATALINA_HOME May point at your Catalina "build" directory.
|
| 36 | rem
|
| 37 | rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
|
| 38 | rem of a Catalina installation. If not present, resolves to
|
| 39 | rem the same directory that CATALINA_HOME points to.
|
| 40 | rem
|
| 41 | rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 42 | rem "run" or "debug" command is executed.
|
| 43 | rem Include here and not in JAVA_OPTS all options, that should
|
| 44 | rem only be used by Tomcat itself, not by the stop process,
|
| 45 | rem the version command etc.
|
| 46 | rem Examples are heap size, GC logging, JMX ports etc.
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 47 | rem
|
| 48 | rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
|
| 49 | rem the JVM should use (java.io.tmpdir). Defaults to
|
| 50 | rem %CATALINA_BASE%\temp.
|
| 51 | rem
|
| 52 | rem JAVA_HOME Must point at your Java Development Kit installation.
|
| 53 | rem Required to run the with the "debug" argument.
|
| 54 | rem
|
| 55 | rem JRE_HOME Must point at your Java Runtime installation.
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 56 | rem Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
|
| 57 | rem are both set, JRE_HOME is used.
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 58 | rem
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 59 | rem JAVA_OPTS (Optional) Java runtime options used when any command
|
| 60 | rem is executed.
|
| 61 | rem Include here and not in CATALINA_OPTS all options, that
|
| 62 | rem should be used by Tomcat and also by the stop process,
|
| 63 | rem the version command etc.
|
| 64 | rem Most options should go into CATALINA_OPTS.
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 65 | rem
|
| 66 | rem JAVA_ENDORSED_DIRS (Optional) Lists of of semi-colon separated directories
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 67 | rem containing some jars in order to allow replacement of APIs
|
| 68 | rem created outside of the JCP (i.e. DOM and SAX from W3C).
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 69 | rem It can also be used to update the XML parser implementation.
|
| 70 | rem Defaults to $CATALINA_HOME/endorsed.
|
| 71 | rem
|
| 72 | rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
|
| 73 | rem command is executed. The default is "dt_socket".
|
| 74 | rem
|
| 75 | rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
|
| 76 | rem command is executed. The default is 8000.
|
| 77 | rem
|
| 78 | rem JPDA_SUSPEND (Optional) Java runtime options used when the "jpda start"
|
| 79 | rem command is executed. Specifies whether JVM should suspend
|
| 80 | rem execution immediately after startup. Default is "n".
|
| 81 | rem
|
| 82 | rem JPDA_OPTS (Optional) Java runtime options used when the "jpda start"
|
| 83 | rem command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
|
| 84 | rem and JPDA_SUSPEND are ignored. Thus, all required jpda
|
| 85 | rem options MUST be specified. The default is:
|
| 86 | rem
|
| 87 | rem -agentlib:jdwp=transport=%JPDA_TRANSPORT%,
|
| 88 | rem address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
|
| 89 | rem
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 90 | rem JSSE_OPTS (Optional) Java runtime options used to control the TLS
|
| 91 | rem implementation when JSSE is used. Default is:
|
| 92 | rem "-Djdk.tls.ephemeralDHKeySize=2048"
|
| 93 | rem
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 94 | rem LOGGING_CONFIG (Optional) Override Tomcat's logging config file
|
| 95 | rem Example (all one line)
|
| 96 | rem set LOGGING_CONFIG="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
|
| 97 | rem
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 98 | rem LOGGING_MANAGER (Optional) Override Tomcat's logging manager
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 99 | rem Example (all one line)
|
| 100 | rem set LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
|
| 101 | rem
|
| 102 | rem TITLE (Optional) Specify the title of Tomcat window. The default
|
| 103 | rem TITLE is Tomcat if it's not specified.
|
| 104 | rem Example (all one line)
|
| 105 | rem set TITLE=Tomcat.Cluster#1.Server#1 [%DATE% %TIME%]
|
| 106 | rem ---------------------------------------------------------------------------
|
| 107 |
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 108 | setlocal
|
| 109 |
|
| 110 | rem Suppress Terminate batch job on CTRL+C
|
| 111 | if not ""%1"" == ""run"" goto mainEntry
|
| 112 | if "%TEMP%" == "" goto mainEntry
|
| 113 | if exist "%TEMP%\%~nx0.run" goto mainEntry
|
| 114 | echo Y>"%TEMP%\%~nx0.run"
|
| 115 | if not exist "%TEMP%\%~nx0.run" goto mainEntry
|
| 116 | echo Y>"%TEMP%\%~nx0.Y"
|
| 117 | call "%~f0" %* <"%TEMP%\%~nx0.Y"
|
| 118 | rem Use provided errorlevel
|
| 119 | set RETVAL=%ERRORLEVEL%
|
| 120 | del /Q "%TEMP%\%~nx0.Y" >NUL 2>&1
|
| 121 | exit /B %RETVAL%
|
| 122 | :mainEntry
|
| 123 | del /Q "%TEMP%\%~nx0.run" >NUL 2>&1
|
| 124 |
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 125 | rem Guess CATALINA_HOME if not defined
|
| 126 | set "CURRENT_DIR=%cd%"
|
| 127 | if not "%CATALINA_HOME%" == "" goto gotHome
|
| 128 | set "CATALINA_HOME=%CURRENT_DIR%"
|
| 129 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
| 130 | cd ..
|
| 131 | set "CATALINA_HOME=%cd%"
|
| 132 | cd "%CURRENT_DIR%"
|
| 133 | :gotHome
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 134 |
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 135 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
| 136 | echo The CATALINA_HOME environment variable is not defined correctly
|
| 137 | echo This environment variable is needed to run this program
|
| 138 | goto end
|
| 139 | :okHome
|
| 140 |
|
| 141 | rem Copy CATALINA_BASE from CATALINA_HOME if not defined
|
| 142 | if not "%CATALINA_BASE%" == "" goto gotBase
|
| 143 | set "CATALINA_BASE=%CATALINA_HOME%"
|
| 144 | :gotBase
|
| 145 |
|
| 146 | rem Ensure that any user defined CLASSPATH variables are not used on startup,
|
| 147 | rem but allow them to be specified in setenv.bat, in rare case when it is needed.
|
| 148 | set CLASSPATH=
|
| 149 |
|
| 150 | rem Get standard environment variables
|
| 151 | if not exist "%CATALINA_BASE%\bin\setenv.bat" goto checkSetenvHome
|
| 152 | call "%CATALINA_BASE%\bin\setenv.bat"
|
| 153 | goto setenvDone
|
| 154 | :checkSetenvHome
|
| 155 | if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
|
| 156 | :setenvDone
|
| 157 |
|
| 158 | rem Get standard Java environment variables
|
| 159 | if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
|
| 160 | echo Cannot find "%CATALINA_HOME%\bin\setclasspath.bat"
|
| 161 | echo This file is needed to run this program
|
| 162 | goto end
|
| 163 | :okSetclasspath
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 164 | call "%CATALINA_HOME%\bin\setclasspath.bat" %1
|
| 165 | if errorlevel 1 goto end
|
| 166 |
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 167 | rem Add on extra jar file to CLASSPATH
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 168 | rem Note that there are no quotes as we do not want to introduce random
|
| 169 | rem quotes into the CLASSPATH
|
| 170 | if "%CLASSPATH%" == "" goto emptyClasspath
|
| 171 | set "CLASSPATH=%CLASSPATH%;"
|
| 172 | :emptyClasspath
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 173 | set "CLASSPATH=%CLASSPATH%%CATALINA_HOME%\bin\bootstrap.jar"
|
| 174 |
|
| 175 | if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
|
| 176 | set "CATALINA_TMPDIR=%CATALINA_BASE%\temp"
|
| 177 | :gotTmpdir
|
| 178 |
|
| 179 | rem Add tomcat-juli.jar to classpath
|
| 180 | rem tomcat-juli.jar can be over-ridden per instance
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 181 | if not exist "%CATALINA_BASE%\bin\tomcat-juli.jar" goto juliClasspathHome
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 182 | set "CLASSPATH=%CLASSPATH%;%CATALINA_BASE%\bin\tomcat-juli.jar"
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 183 | goto juliClasspathDone
|
| 184 | :juliClasspathHome
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 185 | set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\tomcat-juli.jar"
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 186 | :juliClasspathDone
|
| 187 |
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 188 | if not "%JSSE_OPTS%" == "" goto gotJsseOpts
|
| 189 | set JSSE_OPTS="-Djdk.tls.ephemeralDHKeySize=2048"
|
| 190 | :gotJsseOpts
|
| 191 | set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"
|
| 192 |
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 193 | if not "%LOGGING_CONFIG%" == "" goto noJuliConfig
|
| 194 | set LOGGING_CONFIG=-Dnop
|
| 195 | if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuliConfig
|
| 196 | set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
|
| 197 | :noJuliConfig
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 198 |
|
| 199 | if not "%LOGGING_MANAGER%" == "" goto noJuliManager
|
| 200 | set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
|
| 201 | :noJuliManager
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 202 |
|
| 203 | rem ----- Execute The Requested Command ---------------------------------------
|
| 204 |
|
| 205 | echo Using CATALINA_BASE: "%CATALINA_BASE%"
|
| 206 | echo Using CATALINA_HOME: "%CATALINA_HOME%"
|
| 207 | echo Using CATALINA_TMPDIR: "%CATALINA_TMPDIR%"
|
| 208 | if ""%1"" == ""debug"" goto use_jdk
|
| 209 | echo Using JRE_HOME: "%JRE_HOME%"
|
| 210 | goto java_dir_displayed
|
| 211 | :use_jdk
|
| 212 | echo Using JAVA_HOME: "%JAVA_HOME%"
|
| 213 | :java_dir_displayed
|
| 214 | echo Using CLASSPATH: "%CLASSPATH%"
|
| 215 |
|
| 216 | set _EXECJAVA=%_RUNJAVA%
|
| 217 | set MAINCLASS=org.apache.catalina.startup.Bootstrap
|
| 218 | set ACTION=start
|
| 219 | set SECURITY_POLICY_FILE=
|
| 220 | set DEBUG_OPTS=
|
| 221 | set JPDA=
|
| 222 |
|
| 223 | if not ""%1"" == ""jpda"" goto noJpda
|
| 224 | set JPDA=jpda
|
| 225 | if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
|
| 226 | set JPDA_TRANSPORT=dt_socket
|
| 227 | :gotJpdaTransport
|
| 228 | if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
|
| 229 | set JPDA_ADDRESS=8000
|
| 230 | :gotJpdaAddress
|
| 231 | if not "%JPDA_SUSPEND%" == "" goto gotJpdaSuspend
|
| 232 | set JPDA_SUSPEND=n
|
| 233 | :gotJpdaSuspend
|
| 234 | if not "%JPDA_OPTS%" == "" goto gotJpdaOpts
|
| 235 | set JPDA_OPTS=-agentlib:jdwp=transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
|
| 236 | :gotJpdaOpts
|
| 237 | shift
|
| 238 | :noJpda
|
| 239 |
|
| 240 | if ""%1"" == ""debug"" goto doDebug
|
| 241 | if ""%1"" == ""run"" goto doRun
|
| 242 | if ""%1"" == ""start"" goto doStart
|
| 243 | if ""%1"" == ""stop"" goto doStop
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 244 | if ""%1"" == ""configtest"" goto doConfigTest
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 245 | if ""%1"" == ""version"" goto doVersion
|
| 246 |
|
| 247 | echo Usage: catalina ( commands ... )
|
| 248 | echo commands:
|
| 249 | echo debug Start Catalina in a debugger
|
| 250 | echo debug -security Debug Catalina with a security manager
|
| 251 | echo jpda start Start Catalina under JPDA debugger
|
| 252 | echo run Start Catalina in the current window
|
| 253 | echo run -security Start in the current window with security manager
|
| 254 | echo start Start Catalina in a separate window
|
| 255 | echo start -security Start in a separate window with security manager
|
| 256 | echo stop Stop Catalina
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 257 | echo configtest Run a basic syntax check on server.xml
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 258 | echo version What version of tomcat are you running?
|
| 259 | goto end
|
| 260 |
|
| 261 | :doDebug
|
| 262 | shift
|
| 263 | set _EXECJAVA=%_RUNJDB%
|
| 264 | set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\java"
|
| 265 | if not ""%1"" == ""-security"" goto execCmd
|
| 266 | shift
|
| 267 | echo Using Security Manager
|
| 268 | set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
|
| 269 | goto execCmd
|
| 270 |
|
| 271 | :doRun
|
| 272 | shift
|
| 273 | if not ""%1"" == ""-security"" goto execCmd
|
| 274 | shift
|
| 275 | echo Using Security Manager
|
| 276 | set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
|
| 277 | goto execCmd
|
| 278 |
|
| 279 | :doStart
|
| 280 | shift
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 281 | if "%TITLE%" == "" set TITLE=Tomcat
|
| 282 | set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 283 | if not ""%1"" == ""-security"" goto execCmd
|
| 284 | shift
|
| 285 | echo Using Security Manager
|
| 286 | set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
|
| 287 | goto execCmd
|
| 288 |
|
| 289 | :doStop
|
| 290 | shift
|
| 291 | set ACTION=stop
|
| 292 | set CATALINA_OPTS=
|
| 293 | goto execCmd
|
| 294 |
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 295 | :doConfigTest
|
| 296 | shift
|
| 297 | set ACTION=configtest
|
| 298 | set CATALINA_OPTS=
|
| 299 | goto execCmd
|
| 300 |
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 301 | :doVersion
|
| 302 | %_EXECJAVA% -classpath "%CATALINA_HOME%\lib\catalina.jar" org.apache.catalina.util.ServerInfo
|
| 303 | goto end
|
| 304 |
|
| 305 |
|
| 306 | :execCmd
|
| 307 | rem Get remaining unshifted command line arguments and save them in the
|
| 308 | set CMD_LINE_ARGS=
|
| 309 | :setArgs
|
| 310 | if ""%1""=="""" goto doneSetArgs
|
| 311 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
| 312 | shift
|
| 313 | goto setArgs
|
| 314 | :doneSetArgs
|
| 315 |
|
| 316 | rem Execute Java with the applicable properties
|
| 317 | if not "%JPDA%" == "" goto doJpda
|
| 318 | if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 319 | %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 320 | goto end
|
| 321 | :doSecurity
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 322 | %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 323 | goto end
|
| 324 | :doJpda
|
| 325 | if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 326 | %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 327 | goto end
|
| 328 | :doSecurityJpda
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 329 | %_EXECJAVA% %LOGGING_CONFIG% %LOGGING_MANAGER% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 330 | goto end
|
| 331 |
|
| 332 | :end
|