A simple dos script, SVN get code-Tomcat backup-Maven compilation-Stop/start Tomcat-Tomcat site release

Source: Internet
Author: User
Tags svn update

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.