Context : If you are a java programmer? and you use tomcat on windows? and you do not want repeated stress injury?
If yes then below are the scripts:
#1# Script to shutdown tomcat, deploy app, and startup ##
set tomcat_home=C:\..\apache-tomcat-6.0.20
set CATALINA_HOME = %tomcat_home%
cmd /c %tomcat_home%\bin\shutdown.bat
cmd /c mvn clean package -Dmaven.test.skip
rmdir /s /q %tomcat_home%\webapps\coacs
copy target\myhotapp.war %tomcat_home%\webapps
cmd /c %tomcat_home%\bin\startup.bat
#2# Run tomcat in debug mode - store this under tomcat/bin as tomcat-debug.bat ##
set CATALINA_HOME=C:\Apps\apache-tomcat-6.0.20
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
%CATALINA_HOME%\bin\catalina.bat jpda start
If yes then below are the scripts:
#1# Script to shutdown tomcat, deploy app, and startup ##
set tomcat_home=C:\..\apache-tomcat-6.0.20
set CATALINA_HOME = %tomcat_home%
cmd /c %tomcat_home%\bin\shutdown.bat
cmd /c mvn clean package -Dmaven.test.skip
rmdir /s /q %tomcat_home%\webapps\coacs
copy target\myhotapp.war %tomcat_home%\webapps
cmd /c %tomcat_home%\bin\startup.bat
#2# Run tomcat in debug mode - store this under tomcat/bin as tomcat-debug.bat ##
set CATALINA_HOME=C:\Apps\apache-tomcat-6.0.20
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
%CATALINA_HOME%\bin\catalina.bat jpda start
No comments:
Post a Comment