1.java环境配置
JAVA_HOME=C:\Java\jdk1.6.0_38
Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%ANT_HOME%\bin;%CXF_HOME%\bin;C:\Program Files\TortoiseSVN\bin;%systemroot%\idmu\common;%ICE_HOME%\bin;%M2_HOME%\bin;%M2_REPO%\;
CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tool.jar;%ICE_HOME%\lib\Ice.jar;%ICE_HOME%\lib\Freeze.jar;%ICE_HOME%\lib\db.jar
2.ant打包工具配置
build.properties
lib.dir=lib
svnant.repository.user=tangxin
svnant.repository.passwd=txwoaiyj
#tomcat config
tomcat.home=E:/apache-tomcat
tomcat.manager.url=http://172.16.50.204:8080/manager/html
tomcat.manager.username=tomcat
tomcat.manager.password=IT123456
root.path=D\:/Workspaces/MyEclipse2/antscript/temp
tmcserver.classes.path = D:/Workspaces/MyEclipse2/tmcserver/WebRoot/WEB-INF/classes
#deployconfig
deployconfig.svn.url = http\://localhost\:8000/svn/TempusCococ/Project/TMC/\u96C6\u56E2\u5BA2\u6237\u7CFB\u7EDF/Branches/code/deployConfig/3.179 80
#tmcserver config
tmcserver.svn.url = http\://localhost\:8000/svn/TempusCococ/Project/TMC/\u96C6\u56E2\u5BA2\u6237\u7CFB\u7EDF/Branches/code/tmcserver
#bko config
bko.svn.url = http\://localhost\:8000/svn/TempusCococ/Project/TMC/\u96C6\u56E2\u5BA2\u6237\u7CFB\u7EDF/Branches/code/bko
#deploy file
deploy.warfile.path = 2012-03-27 10-48-01
build.xml
<?xml version="1.0" encoding="GBK"?> <!-- Sample build file used to retrieve svnant's sources --> <project name="svn-test" basedir="." default="war"> <!-- all properties are in build.properties --> <property file="build.properties" /> <!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib --> <path id="svnant.classpath"> <fileset dir="${lib.dir}"> <include name="**/*.jar" /> </fileset> </path> <tstamp> <format property="date" pattern="yyyy-MM-dd HH-mm-ss" /> </tstamp> <!-- 加载tomcat task --> <taskdef file="tomcat.properties"> <classpath> <pathelement path="${tomcat.home}/lib/catalina-ant.jar" /> </classpath> </taskdef> <!-- load the svn task --> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" /> <svnSetting id="svnSetting" username="${svnant.repository.user}" password="${svnant.repository.passwd}" javahl="false" svnkit="true"> </svnSetting> <target name="warbko" description="布署打包bko"> <!-- --> <echo message="create temp folder"> </echo> <mkdir dir="${root.path}/${date}" /> <mkdir dir="${root.path}/${date}/bko/src" /> <mkdir dir="${root.path}/${date}/bko/WEB-INF" /> <mkdir dir="${root.path}/${date}/bko/WEB-INF/classes" /> <mkdir dir="${root.path}/${date}/bko/WEB-INF/lib" /> <echo message="checkout from url: ${bko.svn.url} to path: ${root.path}/${date}/download/bko"> </echo> <svn refid="svnSetting"> <checkout url="${bko.svn.url}" revision="HEAD" destPath="${root.path}/${date}/download/bko" /> </svn> <echo message="checkout from url: ${deployconfig.svn.url} to path: ${root.path}/${date}/download/deployconfig"> </echo> <svn username="${svnant.repository.user}" password="${svnant.repository.passwd}" javahl="false" svnkit="true"> <checkout url="${deployconfig.svn.url}" revision="HEAD" destPath="${root.path}/${date}/download/deployconfig" /> </svn> <!-- 复制源文件 开始 --> <echo message="copy source file from ${root.path}/${date}/download/bko/src to ${root.path}/${date}/bko/src"> </echo> <copy todir="${root.path}/${date}/bko/src"> <fileset dir="${root.path}/${date}/download/bko/src"> <include name="**/*" /> </fileset> </copy> <echo message="copy source file from ${root.path}/${date}/download/bko/common to ${root.path}/${date}/bko/src"> </echo> <copy todir="${root.path}/${date}/bko/src"> <fileset dir="${root.path}/${date}/download/bko/common"> <include name="**/*" /> </fileset> </copy> <echo message="copy source file from ${root.path}/${date}/download/bko/config to ${root.path}/${date}/bko/src"> </echo> <copy todir="${root.path}/${date}/bko/src"> <fileset dir="${root.path}/${date}/download/bko/config"> <include name="**/*" /> </fileset> </copy> <echo message="copy source file from ${root.path}/${date}/download/bko/zcfwz to ${root.path}/${date}/bko/src"> </echo> <copy todir="${root.path}/${date}/bko/src"> <fileset dir="${root.path}/${date}/download/bko/zcfwz"> <include name="**/*" /> </fileset> </copy> <copy todir="${root.path}/${date}/bko/src"> <fileset dir="${root.path}/${date}/download/bko/prop"> <include name="**/*" /> </fileset> </copy> <!-- 复制源文件 完 --> <!-- 复制web目录文件 --> <echo message="copy web content from ${root.path}/${date}/download/bko/WebRoot to ${root.path}/${date}/bko"> </echo> <copy todir="${root.path}/${date}/bko"> <fileset dir="${root.path}/${date}/download/bko/WebRoot"> <include name="**/*" /> </fileset> </copy> <!-- 复制web目录文件 完 --> <echo message="jar tmc-server.jar"> </echo> <!-- 复制源代码下的所有文件 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/dometicket/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/webservice/server/dto"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/dometicket/webservice/server/dto"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/webservice/server/setting"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/dometicket/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <!--在tmc-server.jar中添加tmcserver中的util包中的工具类--> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/webservice/server/util"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/dometicket/webservice/server/util"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/news/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/news/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/news/webservice/server/setting"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/news/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/sms/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/sms/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/sms/webservice/server/setting"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/sms/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/callreason/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/callreason/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/callreason/server"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/callreason/server"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/smsmanage/webservice/server/setting"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/smsmanage/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/smsmanage/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/smsmanage/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/suspend/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/suspend/vo"> <include name="**/*.*" /> </fileset> </copy> <!--短信审批vo--> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/send/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/send/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/send/webservice/server/setting"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/send/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/carrenter/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/carrenter/vo"> <include name="**/*.*" /> </fileset> </copy> <!-- 添加tmcserver工具类 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/common/util"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/common/util"> <include name="**/*.*" /> </fileset> </copy> <!-- 添加邮件审批类 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/examineandapprove/vo"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/examineandapprove/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/basedata"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/basedata"> <include name="**/*.*" /> </fileset> </copy> <!-- 添加银行信息 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/vo/payment"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/classes/com/tempus/tmc/dometicket/vo/payment"> <include name="**/*.*" /> </fileset> </copy> <jar compress="true" destfile="${root.path}/${date}/jar/tmc-server.jar"> <fileset dir="${root.path}/${date}/jar/classes"> <include name="**/*.*" /> </fileset> </jar> <copy todir="${root.path}/${date}/bko/WEB-INF/lib" file="${root.path}/${date}/jar/tmc-server.jar" overwrite="true"> </copy> <echo message="compile source file from ${root.path}/${date}/bko/src to ${root.path}/${date}/bko/src"> </echo> <path id="bko.project.classpath"> <fileset dir="${root.path}/${date}/bko/WEB-INF/lib"> <include name="**/*.jar" /> </fileset> <fileset dir="${tomcat.home}/lib"> <include name="**/*.jar" /> </fileset> </path> <javac srcdir="${root.path}/${date}/bko/src" destdir="${root.path}/${date}/bko/WEB-INF/classes" fork="true" memorymaximumsize="256m" memoryInitialSize="256m" source="1.6" encoding="gbk" debug="true" debuglevel="source,lines,vars"> <classpath refid="bko.project.classpath" /> </javac> <!-- 复制源代码下的非java文件, 即配置文件 --> <copy todir="${root.path}/${date}/bko/WEB-INF/classes"> <fileset dir="${root.path}/${date}/bko/src"> <exclude name="**/*.java" /> </fileset> </copy> <!-- 复制 完 --> <!-- 删除源文件,即src目录 --> <echo message="delete temp source file for war"> </echo> <delete dir="${root.path}/${date}/bko/src"> </delete> <echo message="delete tbe test jar"> </echo> <delete> <fileset dir="${root.path}/${date}/bko/WEB-INF/lib"> <include name="TBE*test.jar" /> </fileset> </delete> <echo message="copy deploy config file from ${root.path}/${date}/download/deployconfig/bko to ${root.path}/${date}/bko"> </echo> <copy todir="${root.path}/${date}/bko" overwrite="true"> <fileset dir="${root.path}/${date}/download/deployconfig/bko"> <include name="**/*.*" /> </fileset> </copy> <echo message="war file to ${root.path}/${date}/bko.war"> </echo> <war warfile="${root.path}/${date}/bko.war" webxml="${root.path}/${date}/bko/WEB-INF/web.xml"> <fileset dir="${root.path}/${date}/bko"> </fileset> </war> <echo message="delete temp file"> </echo> <delete dir="${root.path}/${date}/bko"> </delete> </target> <target name="wartmcserver" description="布署打包tmcserver"> <!-- --> <echo message="create temp folder"> </echo> <mkdir dir="${root.path}/${date}" /> <mkdir dir="${root.path}/${date}/tmcserver/src" /> <mkdir dir="${root.path}/${date}/tmcserver/WEB-INF" /> <mkdir dir="${root.path}/${date}/tmcserver/WEB-INF/classes" /> <mkdir dir="${root.path}/${date}/tmcserver/WEB-INF/lib" /> <echo message="checkout from url: ${tmcserver.svn.url} to path: ${root.path}/${date}/download/tmcserver"> </echo> <svn refid="svnSetting"> <checkout url="${tmcserver.svn.url}" revision="HEAD" destPath="${root.path}/${date}/download/tmcserver" /> </svn> <echo message="checkout from url: ${deployconfig.svn.url} to path: ${root.path}/${date}/download/deployconfig"> </echo> <svn username="${svnant.repository.user}" password="${svnant.repository.passwd}" javahl="false" svnkit="true"> <checkout url="${deployconfig.svn.url}" revision="HEAD" destPath="${root.path}/${date}/download/deployconfig" /> </svn> <!-- 复制源文件 开始 --> <echo message="copy source file from ${root.path}/${date}/download/tmcserver/src to ${root.path}/${date}/tmcserver/src"> </echo> <copy todir="${root.path}/${date}/tmcserver/src"> <fileset dir="${root.path}/${date}/download/tmcserver/src"> <include name="**/*" /> </fileset> </copy> <echo message="copy source file from ${root.path}/${date}/download/tmcserver/common to ${root.path}/${date}/tmcserver/src"> </echo> <copy todir="${root.path}/${date}/tmcserver/src"> <fileset dir="${root.path}/${date}/download/tmcserver/config"> <include name="**/*" /> </fileset> </copy> <!-- 复制源文件 完 --> <!-- 复制web目录文件 --> <echo message="copy web content from ${root.path}/${date}/download/tmcserver/WebRoot to ${root.path}/${date}/tmcserver"> </echo> <copy todir="${root.path}/${date}/tmcserver"> <fileset dir="${root.path}/${date}/download/tmcserver/WebRoot"> <include name="**/*" /> </fileset> </copy> <!-- 复制web目录文件 完 --> <echo message="compile source file from ${root.path}/${date}/tmcserver/src to ${root.path}/${date}/tmcserver/src"> </echo> <path id="tmcserver.project.classpath"> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/lib"> <include name="**/*.jar" /> </fileset> <fileset dir="${tomcat.home}/lib"> <include name="**/*.jar" /> </fileset> </path> <javac srcdir="${root.path}/${date}/tmcserver/src" fork="true" memorymaximumsize="256m" memoryInitialSize="256m" destdir="${root.path}/${date}/tmcserver/WEB-INF/classes" source="1.6" encoding="gbk" debug="true" debuglevel="source,lines,vars"> <classpath refid="tmcserver.project.classpath" /> </javac> <!-- 复制源代码下的非java文件, 即配置文件 --> <copy todir="${root.path}/${date}/tmcserver/WEB-INF/classes"> <fileset dir="${root.path}/${date}/tmcserver/src"> <exclude name="**/*.java" /> </fileset> </copy> <echo message="delete temp source file for war"> </echo> <delete dir="${root.path}/${date}/tmcserver/src"> </delete> <echo message="delete tbe test jar"> </echo> <delete> <fileset dir="${root.path}/${date}/tmcserver/WEB-INF/lib"> <include name="TBE*test.jar" /> </fileset> </delete> <echo message="copy deploy config file from ${root.path}/${date}/download/deployconfig/tmcserver to ${root.path}/${date}/tmcserver"> </echo> <copy todir="${root.path}/${date}/tmcserver" overwrite="true"> <fileset dir="${root.path}/${date}/download/deployconfig/tmcserver"> <include name="**/*.*" /> </fileset> </copy> <echo message="war file to ${root.path}/${date}/tmcserver.war"> </echo> <war warfile="${root.path}/${date}/tmcserver.war" webxml="${root.path}/${date}/tmcserver/WEB-INF/web.xml"> <fileset dir="${root.path}/${date}/tmcserver"> </fileset> </war> </target> <target name="cleartmctempfile"> <echo message="delete temp file"> </echo> <delete dir="${root.path}/${date}/tmcserver"> </delete> </target> <target name="deploybko" description="Install application in Tomcat"> <echo message="正在安装应用程序, file: ${root.path}/${deploy.warfile.path}/bko.war"> </echo> <deploy url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/bko" war="file:${root.path}/${deploy.warfile.path}/bko.war" /> </target> <!-- 启动应用程序 --> <target name="startbko" description="Start Tomcat application"> <start url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/bko" /> </target> <!-- 卸载应用程序 --> <target name="removebko" description="Remove application from Tomcat"> <undeploy url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/bko" /> </target> <!-- 停止应用程序 --> <target name="stopbko" description="Stop Tomcat application"> <stop url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/bko" /> </target> <!-- 安装应用程序 --> <target name="deploytmcserver" description="Install application in Tomcat"> <echo message="正在安装应用程序, file: ${root.path}/${deploy.warfile.path}/tmcserver.war"> </echo> <deploy url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/tmcserver" war="file:${root.path}/${deploy.warfile.path}/tmcserver.war" /> </target> <!-- 启动应用程序 --> <target name="starttmcserver" description="Start Tomcat application"> <start url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/tmcserver" /> </target> <!-- 卸载应用程序 --> <target name="removetmcserver" description="Remove application from Tomcat"> <undeploy url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/tmcserver" /> </target> <!-- 停止应用程序 --> <target name="stoptmcserver" description="Stop Tomcat application"> <stop url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/tmcserver" /> </target> <!-- 启动tomcat --> <target name="startServer" description="tomcat starting....."> <exec executable="${tomcat.home}/bin/startup.bat" spawn="true" vmlauncher="false"> <env key="CATALINA_HOME" value="${tomcat.home}" /> <arg line="/c start ${tomcat.home}/bin/startup.bat" /> </exec> <waitfor maxwait="5" maxwaitunit="second"> <available file="errors.log" /> </waitfor> </target> <!-- 停止tomcat --> <target name="stopServer"> <java jar="${tomcat.home}/bin/bootstrap.jar" fork="true"> <jvmarg value="-Dcatalina.home=${tomcat.home}" /> <arg line="stop" /> </java> <waitfor maxwait="15" maxwaitunit="second"> <available file="errors.log" /> </waitfor> </target> <target name="showdate"> <echo>${date}</echo> </target> <target name="war" depends="wartmcserver,warbko,cleartmctempfile"> </target> <target name="deploy" depends="deploytmcserver,deploybko"> </target> <!-- 单独打包tmcserver --> <target name="jartmcserver" depends=""> <echo message="jar tmc-server.jar"> </echo> <!-- 复制源代码下的所有文件 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/dometicket/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/webservice/server/dto"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/dometicket/webservice/server/dto"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/webservice/server/setting"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/dometicket/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <!--在tmc-server.jar中添加tmcserver中的util包中的工具类--> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/dometicket/webservice/server/util"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/dometicket/webservice/server/util"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/news/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/news/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/news/webservice/server/setting"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/news/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/sms/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/sms/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/sms/webservice/server/setting"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/sms/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/callreason/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/callreason/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/callreason/server"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/callreason/server"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/smsmanage/webservice/server/setting"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/smsmanage/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/smsmanage/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/smsmanage/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/suspend/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/suspend/vo"> <include name="**/*.*" /> </fileset> </copy> <!--短信审批--> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/send/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/send/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/send/webservice/server/setting"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/send/webservice/server/setting"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/carrenter/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/carrenter/vo"> <include name="**/*.*" /> </fileset> </copy> <!-- 添加tmcserver工具类 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/common/util"> <fileset dir="${tmcserver.classes.path}/com/tempus/common/util"> <include name="**/*.*" /> </fileset> </copy> <!-- 添加邮件审批类 --> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/examineandapprove/vo"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/examineandapprove/vo"> <include name="**/*.*" /> </fileset> </copy> <copy todir="${root.path}/${date}/jar/classes/com/tempus/tmc/basedata"> <fileset dir="${tmcserver.classes.path}/com/tempus/tmc/basedata"> <include name="**/*.*" /> </fileset> </copy> <jar compress="true" destfile="${root.path}/${date}/jar/tmc-server.jar"> <fileset dir="${root.path}/${date}/jar/classes"> <include name="**/*.*" /> </fileset> </jar> </target> </project>