On 16 Apr, Derek Harding wrote:
> Are there any examples of how to create a WAR file?
>
There is a war target available in ant-1.3. Here is the one from my
project.
<!-- ================== DIST: Create XXX.war file =================== -->
<target name="dist-war" depends="XXX-taglib,XXXerr-taglib">
<war warfile="XXX.war" webxml="${build.dir}/metadata/XXX.xml">
<webinf dir="${build.dir}/metadata">
<exclude name="XXX.xml"/>
</webinf>
<classes dir="${build.dir}/classes" excludes="**/*Tag.class"/>
<lib dir="${build.dir}/lib">
<exclude name="mindt*.jar"/>
</lib>
<fileset dir="${build.dir}/html"/>
<fileset dir="${build.dir}/jsp"/>
<fileset dir="${build.dir}/images"/>
</war>
</target>
I changed the names to protect the innocent.
=eas=