Mercurial > hg > human-echolocation-java-webapp
view build.xml @ 43:eda40f334135
Merge
author | Chris Cannam |
---|---|
date | Tue, 25 Feb 2014 16:50:01 +0000 |
parents | 32592582ffd1 |
children | b27106b380d8 |
line wrap: on
line source
<project name="EchoWebApp" default="build-war" basedir="."> <description> Simple build file for the EchoLocation WebApp. </description> <!-- set global properties for this build --> <property name="lib" location="WebContent/WEB-INF/lib"/> <property name="src" location="src"/> <property name="class.dir" location="WebContent/WEB-INF/classes"/> <property name="web.dir" location="WebContent"/> <property name="war.file" location="echoapp.war"/> <target name="init"> <!-- Create the time stamp --> <tstamp/> </target> <target name="build"> <javac srcdir="${src}" destdir="${class.dir}" classpath="servlet-api.jar:${lib}/javabuilder.jar:${lib}/isvr.jar:${lib}/log4j-1.2.17.jar" includeantruntime="false"/> </target> <target name="build-war" depends="build" description="generate the WAR file" > <war destfile="${war.file}" webxml="${web.dir}/WEB-INF/web.xml"> <fileset dir="${web.dir}"> <exclude name="${web.dir}/WEB-INF/web.xml" /> </fileset> </war> </target> <target name="clean" description="clean up" > <delete file="${war.file}"/> <delete> <fileset dir="${class.dir}"> <include name="*.class"/> </fileset> </delete> </target> </project>