Windows publishes web to Tomcat in batch and starts Tomcat script sharing


Copy codeThe code is as follows:
@REM deploy web system to Tomcat
set date=%date:~0,10%
set time=%time:~0,8%
set currDate=%date% %time%
Echo starts running. Copy the compiled code in the workspace to Tomcat…% currDate%

Echo setting parameters
Set work space = J: \ float \ it \ workspace
set PRJ_NAME=MyStruts1Prj
set PRJ_WEB_ROOT=MyStruts1Prj\WebContent
set BIN=build
Set Catalina? Home = J: \ floating \ it \ tools \ Tomcat6? 0? 3? 5
set WEB_NAME=webapp

@REM delete previous
Echo delete the existing
cd %CATALINA_HOME%\webapps
if exist %WEB_NAME% rd /s /q %WEB_NAME%


@REM copies the compiled files from the project to Tomcat
Echo copy the compiled files from the project to Tomcat \ webapps

@REM starts Tomcat
Echo starts Tomcat
call startup.bat

Recommended Today

JQuery’s promise

Promise is an asynchronous programming specification, transliteration to understand –“Prometheus” Prometheus is a hero in Greek mythology, whose name means “prophet”. Promise was originally named “futures”. It can be seen that promise does not mean literally “oath”, “promise”, etc., but “prophet” and “future”. Promise is to solve the most headache in asynchronous programmingCallback nesting region […]