一键把eclipse web工程打包到tomcat
?
class="java" name="code">echo ========================1.copy project file to a temp file============================================ d: rd /s/q d:\v_webDemo md v_webDemo xcopy D:\studyspaces\v_webDemo\WebContent D:\v_webDemo /e xcopy D:\studyspaces\v_webDemo\build D:\v_webDemo\WEB-INF /e echo ========================2.#copy project file to tomcat webapps file==================================== cd D:\software\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\bin call shutdown.bat cd D:\software\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\webapps rd /s/q D:\software\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\webapps\v_webDemo md v_webDemo xcopy D:\v_webDemo D:\software\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\webapps\v_webDemo /e echo ========================3.let's start tomcat========================================================== cd D:\software\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\bin call startup.bat rd /s/q d:\v_webDemo echo ========================4.start Explorer and test========================================================== cd D:\software\SogouExplorer SogouExplorer.exe http://127.0.0.1:8080/v_webDemo/ pause
?