Intellij Idea 社区版开发java web项目
发表时间:2017-8-21
发布人:葵宇科技
浏览次数:33
启动tomcat脚本
::Set JAVA_HOME
if "%JAVA_HOME%"=="" set JAVA_HOME=D:\software\jdk\jdk7.25
::Set MAVEN HOME
if "%MAVEN_HOME%"=="" set MAVEN_HOME=D:\software\apache-maven-3.3.3
if "%MAVEN%"=="" set MAVEN=%cd%%MAVEN_HOME%\bin
::Attach MAVEN TO SYSTEM PATH
set path=%path%;%cd%%MAVEN%
::SET MAVEN OPTIONS
set MAVEN_BATCH_PAUSE=on
set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y -Xms256m -Xmx512m -XX:MaxPermSize=128m
:: Set JAVA OPTIONS
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
:: Set CATALINA_OPTS
SET CATALINA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=D:\software\tomcat\apache-tomcat-7.0.65"
set "EXECUTABLE=%CURRENT_DIR%\bin\catalina.bat"
set "CATALINA_HOME=%CURRENT_DIR%"
call "%EXECUTABLE%" start debug