Get the latest code
SVN update -- username % svn_user % -- password % svn_password %>"../% LOG_FILE %"
Back up Tomcat sites
MD"% App_root % \ backup \ % mvn_profile %-% cur_date %-% myran %">"% LOG_FILE %"Xcopy"% App_root % \ % mvn_profile %" "% App_root % \ backup \ % mvn_profile %-% cur_date %-% myran %"/S>"% LOG_FILE %"
Compile code
You must call the CMD Cal command L. Otherwise, the maven command will exit the entire bat directly. This problem has been called for most of the night.
Call MVN cleanInstall-Dskiptests-P % mvn_profile %-F % mvn_pom %>"% LOG_FILE %"
Stop Tomcat Service
Net stop tomcat6>"% LOG_FILE %"
Release site
RD/S/Q " % App_root % \ % mvn_profile % " > " % LOG_FILE % " MD " % App_root % \ % mvn_profile % " > " % LOG_FILE % " Xcopy " % Mvn_webapp % \ % mvn_profile % " " % App_root % \ % mvn_profile % " /S> " % LOG_FILE % " Xcopy " % Mvn_3rd_lib % " " % App_root % \ % mvn_profile % \ WEB-INF \ Lib " > " % LOG_FILE % "
Start Tomcat Service
Net start tomcat6>"% LOG_FILE %"
Source code file