java的build.bat文件和build.xml
build.bat文件内容如下:
java -Xms256m -Xmx512m -cp WebRoot\WEB-INF\lib\ant-1.6.5.jar;WebRoot\WEB-INF\lib\ant-launcher-1.6.5.jar;WebRoot\WEB-INF\lib\ant-nodeps-1.6.5.jar;%JAVA_HOME%\lib\tools.jar org.apache.tools.ant.Main -f build.xml war
pause
pause
---------------------------------
build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="TopEng-CSP V6.0R002 WFE MODULE WAR builder" default="war" basedir=".">
<echo> to run TopEng-CSP V6.0R002 ANT build script... </echo>
<description>TopEng-CSP V6.0R002</description>
<!-- ====================================================================== -->
<!-- set global properties for this build file -->
<!-- ====================================================================== -->
<property environment="environment" />
<property file="build.properties" />
<property name="project.name" value="12580C02" />
<property name="module.name" value="wfeHeNan" />
<property name="module.deployname" value="${project.name}" />
<property name="webserver.name" value="tomcat" />
<property name="webserver.home" value="D:/tomcat-5.5.23" />
<property name="cvs.root" value=":pserver;username=liaozhenyu;password=sM3m9mnv;hostname=10.32.184.248:'/TopEng-CSP V600R002'"/>
<property name="cvs.password" value="sM3m9mnv"/>
<property name="cvs.dir" value="d:/work"/>
<property name="cvs.dir.src" value="csp"/>
<property name="cvs.dir.release" value="csp/release"/>
<property name="cvs.dir.dest" value="csp"/>
<property name="dest.dir" value="${basedir}/release" />
<property name="project.home" value="${basedir}"/>
<property name="project.lib.home" value="${project.home}\WebRoot\WEB-INF\lib"/>
<!-- ====================================================================== -->
<!-- to pre-declare the project class path -->
<!-- ====================================================================== -->
<path id="class.path">
<fileset dir="${environment.JAVA_HOME}" includes="**/*.jar" />
<fileset dir="${project.lib.home}" includes="**/*.jar" />
<fileset dir="${webserver.home}/common/lib" includes="**/*.jar" />
</path>