日期:2014-05-17 浏览次数:20877 次
<project basedir="." default="all" name="ASPPORTAL"> <target name="init" description="init var"> <property name="src" value="${basedir}/src"/> <property name="config" value="${basedir}/config"/> <property name="config-base" value="${basedir}/config-base"/> <property name="script" value="../script"/> <property name="manual" value="../manual"/> <property name="itool" value="../itool"/> <property name="output" value="${basedir}/output"/> <property name="build" value="${basedir}/build"/> <property name="build.classes" value="${build}/classes"/> <property name="webapp" value="${basedir}/webapp"/> <path id="classpath"> <fileset dir="${webapp}/WEB-INF/lib"> <include name="**/*.jar"/> </fileset> <fileset dir="${basedir}/libs"> <include name="**/*.jar"/> </fileset> </path> </target> <target name="clean" description="clean history"> <delete dir="${output}"/> <delete dir="${build}"/> </target> <target name="prepare" description="create dir"> <mkdir dir="${build}"/> <mkdir dir="${build.classes}"/> <mkdir dir="${output}"/> </target> <target name="build" description="build classes"> <javac srcdir="${src}" destdir="${build.classes}" debug="true" deprecation="on" encoding="UTF-8"> <classpath refid="classpath"/> </javac> <copy todir="${build.classes}"> <fileset dir="${config}"></fileset> <fileset dir="${config-base}"></fileset> </copy> </target> <target name="antzip" description="ant aspprotal.zip"> <war destfile="${output}/aspportal.zip"> <classes dir="${build.classes}"/> <fileset dir="${webapp}"/> </war> </target> <target name="antwar" description="ant aspprotal.war"> <war destfile="${output}/aspportal.war"> <classes dir="${build.classes}"/> <fileset dir="${webapp}"/> </war> </target> <target name="script"> <copy todir="${output}/script" overwrite="true"> <fileset dir="${script}"/> </copy> </target> <target name="manual"> <copy todir="${output}/manual" overwrite="true"> <fileset dir="${manual}"/> </copy> </target> <target name="zipitool"> <zip destfile="${output}/FT-DevPortalVx.x.x.zip"> <fileset dir="${itool}"/> <fileset dir="${output}/"> <include name="aspportal.zip"/> </fileset> </zip> </target> <target name="clean2"> <delete dir="${build}"/> </target> <target name="all" depends="init,clean,prepare,build,antzip,antwar,script,manual,zipitool,clean2" description="build begin..."/> </project>
?