Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
#17 war target added to ant build
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Broman committed Dec 7, 2017
1 parent 25db47e commit 50eb93d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<property name="dist.dir" value="dist" />

<property name="jarfile" value="${build.dist.name}-${build.dist.version}.jar" />
<property name="warfile" value="${build.dist.name}-${build.dist.version}.war" />
<property name="dir.lib" value="${basedir}/WebContent/WEB-INF/lib" />

<property name="src.dir" value="${basedir}/src" />
Expand All @@ -31,7 +32,7 @@
<pathelement path="${java.class.path}" />
</path>

<target name="all" depends="jar" />
<target name="all" depends="war" />

<target name="clean">
<delete dir="${build.dir}" />
Expand Down Expand Up @@ -101,4 +102,11 @@
</jar>
</target>

<target name="war" depends="jar">
<war destfile="${dist.dir}/${warfile}" webxml="WebContent/WEB-INF/web.xml">
<fileset dir="WebContent"/>
<lib dir="${dir.lib}"/>
<classes dir="${build.dir}"/>
</war>
</target>
</project>

0 comments on commit 50eb93d

Please sign in to comment.