Skip to content

Commit

Permalink
Added 'clean' target. Target and source level set to 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-x-g committed May 16, 2013
1 parent 630055c commit 1fa7b2c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@

<target name="all" depends="compile,compile-xmlrpc,package"/>

<target name="clean">
<delete dir="${basedir}/bin" />
</target>

<target name="init">
<mkdir dir="${basedir}/bin" />
</target>

<target name="compile" depends="init">
<javac destdir="${basedir}/bin" includeantruntime="false">
<javac source="1.5" target="1.5" destdir="${basedir}/bin" includeantruntime="false">
<src path="${basedir}/src" />
<classpath refid="compile.classpath"/>
</javac>
</target>

<target name="compile-xmlrpc" depends="init" if="xmlrpc.present">
<echo message="compiling optional xmlrpc classes"/>
<javac srcdir="opt/xmlrpc" destdir="bin" classpathref="compile.classpath" includeantruntime="false"/>
<javac source="1.5" target="1.5" srcdir="opt/xmlrpc" destdir="bin" classpathref="compile.classpath" includeantruntime="false"/>
</target>

<target name="package">
Expand Down

0 comments on commit 1fa7b2c

Please sign in to comment.