ant 文件


<?xml version="1.0" encoding="UTF-8"?>
<project name="Packaging Generator for SFG" default="_packaging_generation_">

<path id="project.classpath">
<fileset dir="webapp/WEB-INF/lib" >
<include name="*.jar"/>
</fileset>
<fileset dir="setup/ide" >
<include name="*.jar"/>
</fileset>
</path>

<target name="_packaging_generation_" depends="clean,init,build,N65591,copy" />

<target name="build" depends="init">
<javac debug="on"
debuglevel="lines,vars,source"
source="1.5"
target="1.5"
destdir="webapp/WEB-INF/classes">
<src path="java/au/com" />
<src path="java/au/gov" />
<classpath refid="project.classpath" />
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>

<target name="N65591" description="SkillsForGrowth.war">
<mkdir dir="deploy" />
<jar destfile="deploy/SkillsForGrowth.war" manifest="webapp/META-INF/MANIFEST.MF">
<zipfileset dir="webapp"/>
<!--<zipfileset dir="lib" prefix="WEB-INF/lib"/>-->
<zipfileset dir="resources" prefix="WEB-INF/classes"/>
</jar>
</target>

<target name="init">
<mkdir dir="webapp/WEB-INF/classes"/>
</target>

<property name="tomcat.dir" value="D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps">
</property>

<target name="clean">
<delete dir="webapp/WEB-INF/classes"/>
<delete dir="deploy"/>
<delete dir="${tomcat.dir}\SkillsForGrowth"/>
</target>


<target name="copy">
<delete>
<fileset dir="${tomcat.dir}">
<include name="SkillsForGrowth.war" />
</fileset>
</delete>
<copy todir="${tomcat.dir}">
<fileset dir="deploy">
<include name="SkillsForGrowth.war" />
</fileset>
</copy>
</target>


</project>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值