锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
]]>
聽
聽
聽<target name="init">
聽聽<property name="Name" value="myceaas" />
聽聽<property name="name" value="myceaas" />
聽聽<property name="version" value="0.2" />
聽聽<property name="year" value="2006" />
聽聽<echo message="----------- ${Name} ${version} [${year}] ------------" />
聽聽<property name="debug" value="off" />
聽聽<property name="optimize" value="on" />
聽聽<property name="deprecation" value="on" />
聽聽<!--<property name="mycedatasycn.location" value="D:/project/myce/mycedatasycn" />-->
<!--聽聽 java婧愭枃浠惰礬寰?-->
聽聽<property name="src.dir" value="${basedir}/src" />
<!--聽聽聽jar鍖呰礬寰?-->
聽聽<property name="lib.dir" value="${basedir}/myceaas/WEB-INF/lib" />
<!--聽聽聽webapp璺緞聽-->
聽聽<property name="webapp.dir" value="${basedir}/myceaas" />
聽聽<property name="packages" value="com.ce.myceaas.*" />
<!--聽聽聽鍑嗗婧愭枃浠惰礬寰?-->
聽聽<property name="build.src" value="${basedir}/AntBuild/build" />
<!--聽聽聽緙栬瘧婧愭枃浠惰礬寰?-->
聽聽<property name="build.dest" value="${basedir}/AntBuild/bin" />
<!--聽聽聽鍑嗗webapp鏂囦歡璺緞 -->
聽聽<property name="buildwar.dest" value="${basedir}/AntBuild/warsrc" />
<!--聽聽聽鍑嗗javadoc鏂囦歡璺緞 -->
聽聽<property name="build.javadocs" value="${basedir}/AntBuild/doc" />
<!--聽聽聽鎵撳寘jar鏂囦歡璺緞 -->
聽聽<property name="jar.dest" value="${basedir}/AntBuild/jar" />
<!--聽聽聽鎵撳寘war鏂囦歡璺緞 -->
聽聽<property name="war.dest" value="${basedir}/AntBuild/war" />
聽聽
聽聽<!--聽聽聽resin-home璺緞 -->
聽聽<property name="resin.home" value="C:\resin-pro-3.0.17"/>
<!--聽聽聽tomcat-home璺緞 -->
聽聽<property name="tomcat.home" value="C:\tomcat5.5.12"/>
聽聽
聽聽<property name="j2eelib.dir" value="C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.9.210/data/libraryset/1.4" />
<!--聽聽聽classpath -->
聽聽<path id="classpath">
聽聽聽
聽聽聽<fileset dir="${j2eelib.dir}">
聽聽聽聽<include name="**/*.jar"/>
聽聽聽</fileset>
聽聽聽<fileset dir="${lib.dir}">
聽聽聽聽<include name="**/*.jar"/>
聽聽聽</fileset>
聽聽聽<!--<pathelement location="lib/"/>-->
聽聽</path>
聽聽<filter token="year" value="${year}" />
聽聽<filter token="version" value="${version}" />
聽聽<filter token="date" value="${TODAY}" />
聽聽<filter token="log" value="true" />
聽聽<filter token="verbose" value="true" />
聽</target>
聽
聽<!-- =================================================================== -->
聽<!-- Help on usage -->
聽<!-- =================================================================== -->
聽<target name="usage" depends="init">
聽聽<echo message="${Name} Build file" />
聽聽<echo message="-------------------------------------------------------------" />
聽聽<echo message="" />
聽聽<echo message=" available targets are:" />
聽聽<echo message="" />
聽聽<echo message=" jar --> generates the ${name}.jar file" />
聽聽<echo message=" build --> compiles the source code" />
聽聽<echo message=" javadoc --> generates the API documentation" />
聽聽<echo message=" clean --> cleans up the directory" />
聽聽<echo message="" />
聽聽<echo message=" Please rename build.properties.default to build.properties" />
聽聽<echo message=" and edit build.properties to specify JSDK 2.3 classpath." />
聽聽<echo message="" />
聽聽<echo message=" See the comments inside the build.xml file for more details." />
聽聽<echo message="-------------------------------------------------------------" />
聽聽<echo message="" />
聽聽<echo message="" />
聽</target>
聽<!-- =================================================================== -->
聽<!-- 鍑嗗婧愭枃浠?->
聽<!-- =================================================================== -->
聽<target name="prepare-src" depends="init">
聽聽<!-- create directories -->
聽聽<mkdir dir="${build.src}" />
聽聽<mkdir dir="${build.dest}" />
聽聽<mkdir dir="${jar.dest}" />
聽聽<mkdir dir="${war.dest}" />
聽聽<mkdir dir="${buildwar.dest}" />
聽聽
聽聽
聽聽<!-- copy src files -->
聽聽<copy todir="${build.src}">
聽聽聽<fileset dir="${src.dir}" />
聽聽</copy>
聽聽<copy todir="${buildwar.dest}">
聽聽聽<fileset dir="${webapp.dir}" />
聽聽</copy>
聽
聽</target>
聽<!-- =================================================================== -->
聽<!-- 緙栬瘧婧愭枃浠?->
聽<!-- =================================================================== -->
聽<target name="build" depends="prepare-src">
聽聽<javac srcdir="${build.src}" destdir="${buildwar.dest}/WEB-INF/classes" debug="${debug}" optimize="${optimize}">
聽聽聽<classpath refid="classpath" />
聽聽</javac>
聽聽<copy todir="${buildwar.dest}/WEB-INF/classes">
聽聽聽<fileset dir="${build.src}" >
聽聽聽聽<include name="**/*.xml"/>
聽聽聽</fileset>
聽聽</copy>
聽</target>
聽<!-- =================================================================== -->
聽<!-- 鎵搘ar鍖?->
聽<!-- =================================================================== -->
聽<target name="myceaas.war" depends="build">
聽聽<war warfile="${war.dest}/myceaas.war" webxml="${buildwar.dest}/WEB-INF/web.xml">
聽聽聽<lib dir="${buildwar.dest}/WEB-INF/lib"/>
聽聽聽<classes dir = "${buildwar.dest}/WEB-INF/classes"/>
聽聽聽<fileset dir="${buildwar.dest}">
聽聽聽</fileset>
聽聽</war>
聽
聽</target>
聽<!-- =================================================================== -->
聽<!-- 鍙戝竷鍒版湰鐨剅esin鍜宼omcat-->
聽<!-- =================================================================== -->
聽<target name="publish" depends="myceaas.war,clean">
聽聽<copy todir="${resin.home}/webapps">
聽聽聽<fileset dir="${war.dest}" >
聽聽聽聽<include name="**/*.war"/>
聽聽聽</fileset>
聽聽</copy>
聽聽<copy todir="${tomcat.home}/webapps">
聽聽聽<fileset dir="${war.dest}" >
聽聽聽聽<include name="**/*.war"/>
聽聽聽</fileset>
聽聽</copy>
聽聽
聽</target>
聽<!--
聽<target name="SyncMain">
聽聽聽聽聽聽聽聽 <java classname="com.ce.synchronization.main.SyncMain" failonerror="true" fork="yes">
聽聽聽聽聽聽聽聽聽聽聽聽 <classpath refid="classpath"/>
聽聽聽聽聽聽聽聽 </java>
聽</target>
聽-->
聽<!-- =================================================================== -->
聽<!-- 浜х敓javadoc api 鏂囨。-->
聽<!-- =================================================================== -->
聽<target name="javadoc" depends="build">
聽聽<mkdir dir="${build.javadocs}" />
聽聽<javadoc packagenames="${packages}" sourcepath="${build.src}" destdir="${build.javadocs}" author="true" version="true" use="true" splitindex="true" windowtitle="${Name} API" doctitle="${Name}">
聽聽聽<classpath refid="classpath" />
聽聽</javadoc>
聽</target>
聽
聽<!-- =================================================================== -->
聽<!-- 娓呴櫎涓存椂鏂囦歡-->
聽<!-- =================================================================== -->
聽<target name="clean" depends="init">
聽聽<delete dir="${build.src}"/>
聽聽<delete dir="${build.dest}/org"/>
聽聽<delete dir="${build.dest}/com"/>
聽聽<delete dir="${buildwar.dest}"/>
聽聽<delete>
聽聽聽<fileset dir="${build.dest}" includes="**/*.class"/>
聽聽</delete>
聽</target>
聽
</project>