Mercurial > hg > human-echolocation-java-webapp
changeset 36:32592582ffd1
fixed the clean task in the ant file
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Dec 2013 13:00:29 +0000 |
parents | b32c3bd9eb89 |
children | 7d2163eeacc3 |
files | build.xml |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/build.xml Tue Dec 10 22:05:19 2013 +0000 +++ b/build.xml Wed Dec 11 13:00:29 2013 +0000 @@ -6,7 +6,7 @@ <!-- set global properties for this build --> <property name="lib" location="WebContent/WEB-INF/lib"/> <property name="src" location="src"/> - <property name="classes" location="WebContent/WEB-INF/classes"/> + <property name="class.dir" location="WebContent/WEB-INF/classes"/> <property name="web.dir" location="WebContent"/> <property name="war.file" location="echoapp.war"/> @@ -16,7 +16,7 @@ </target> <target name="build"> - <javac srcdir="${src}" destdir="${classes}" classpath="servlet-api.jar:${lib}/javabuilder.jar:${lib}/isvr.jar:${lib}/log4j-1.2.17.jar" includeantruntime="false"/> + <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" @@ -29,8 +29,12 @@ </target> <target name="clean" description="clean up" > - <!-- Delete the ${build} and ${dist} directory trees --> - <delete dir="${build}"/> <delete file="${war.file}"/> + <delete> + <fileset dir="${class.dir}"> + <include name="*.class"/> + </fileset> + </delete> </target> + </project>