deploy.sh daily
-------------------------------------------------------------------------------------------------
env=$1
mkdir /home/admin/work
cd /home/admin/work
svn co http://sources.XXX.net/svn/qatec-toolsplatform/aqc-springmvc
cd /home/admin/work/aqc-springmvc
svn up
cd /home/admin/work/aqc-springmvc/aqc-model
echo "开始编译打包..."
mvn clean -U install
cd /home/admin/work/aqc-springmvc/ats-runner
echo "开始编译打包..."
mvn clean -U install
export tomcat_base_dir=/home/share_folder/auto_runner/apache-tomcat-6.0.37$env
echo "开始复制war包到tomcat..."
rm -rf $tomcat_base_dir/webapps/runner
echo "$tomcat_base_dir/webapps/runner"
mkdir $tomcat_base_dir/webapps/runner
cp -r target/ats-runner/* $tomcat_base_dir/webapps/runner/