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>
相关推荐
### Java环境配置详解 在计算机科学领域中,Java是一种广泛使用的编程语言,它以其平台无关性、健壮性和面向对象的特性而闻名。对于初学者来说,正确地配置Java环境是学习旅程的第一步。本文将详细介绍如何配置Java...
JAVA环境配置指南 JAVA环境配置是JAVA编程语言的基础,它决定了JAVA程序的编译、运行和开发环境。在本指南中,我们将详细介绍JAVA环境配置的步骤和要点。 一、环境变量设置 在安装了JDK后,需要设置环境变量以便...
在探讨“关于java环境配置的一些问题”这一主题时,我们主要关注的是如何正确地设置Java开发环境,确保Java应用程序能够顺利运行。对于初次接触Java环境配置的朋友们,以下的详细指南将提供必要的帮助。 ### Java...
Java环境配置是开发Java应用程序的基础步骤,涉及到JDK(Java Development Kit)的安装、环境变量的设置以及相关开发工具的配置。以下将详细介绍这些过程: 首先,安装JDK是Java开发的第一步。从官方网址...
### Java环境配置步骤详解 #### 一、引言 在CentOS 7.0系统上进行Java开发时,尽管默认已经包含了JDK 1.7和1.8,但可能存在安装环境不完整的情况,比如缺失必要的`tool.jar`和`dt.jar`等组件。这会导致诸如`javac`...
### Java环境配置实验报告知识点详解 #### 实验背景与意义 本实验主要针对Java开发环境的基本配置进行实践学习。通过此次实验,旨在帮助学生掌握Java环境的搭建方法,熟悉Java程序的编译与运行流程,为后续深入...
java环境配置小工具,方便简单一键配置java环境
Java环境配置与设置JAVA_HOME,CLASSPATH,PATH的目的
Java环境变量一键配置,支持拖拽获取jdk位置,已安装jdk未配置自动识别位置,支持变更jdk版本,快速切换
"一键配置java环境配置"的标题和描述旨在提供一个简便的方法,帮助用户快速、无痛地完成这些步骤,避免手动配置带来的繁琐和可能的错误。 首先,Java Development Kit(JDK)是Java编程的基础,它包含了编译、调试...
Java 环境配置及验证方法 Java 是一种广泛应用的编程语言,用于开发跨平台的应用程序。为确保 Java 开发环境的正确配置,需要进行相应的设置和验证。本文将详细介绍 Java 环境配置的步骤和验证方法。 一、下载和...
### Java环境配置图文详解 #### 一、引言 Java作为一种广泛应用的编程语言,其环境配置对于初学者来说显得尤为重要。本文将通过图文并茂的方式详细介绍如何安装Java开发工具包(JDK)以及如何进行必要的环境配置,...