NIHVIVO-2188 add a "war" target to both build.xml and product-build.xml, to create a WAR file of Vivo or Vitro.

This commit is contained in:
jeb228 2011-03-03 15:53:41 +00:00
parent c1a122d73f
commit 43fce69d50
2 changed files with 25 additions and 0 deletions

View file

@ -61,6 +61,7 @@ all - Runs "clean", then "deploy".
clean - Delete all artifacts so the next build will be from scratch. clean - Delete all artifacts so the next build will be from scratch.
compile - Compile the Java source files. compile - Compile the Java source files.
test - Compile and run the JUnit tests. test - Compile and run the JUnit tests.
war - Create a WAR file to be deployed in a servlet container.
deploy - Deploy the application directly into the Tomcat webapps directory. deploy - Deploy the application directly into the Tomcat webapps directory.
</echo> </echo>
</target> </target>
@ -309,6 +310,15 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
<fileset dir="${build.dir}/war" /> <fileset dir="${build.dir}/war" />
</sync> </sync>
</target> </target>
<!-- =================================
target: war
================================= -->
<target name="war"
depends="revisionInfo"
description="--> Build the app and create a WAR file">
<jar basedir="${build.dir}/war" destfile="${build.dir}/${webapp.name}.war"/>
</target>
<!-- ================================= <!-- =================================
target: licenser target: licenser

View file

@ -234,6 +234,21 @@
</sync> </sync>
</target> </target>
<!-- =================================
target: war
================================= -->
<target name="war" description="--> Build the app and create a WAR file">
<innercall target="revisionInfo" />
<antcall target="productWar" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: productWar
- - - - - - - - - - - - - - - - - -->
<target name="productWar" depends="productRevisionInfo">
<jar basedir="${build.dir}/war" destfile="${build.dir}/${webapp.name}.war"/>
</target>
<!-- ================================= <!-- =================================
target: licenser target: licenser