annotate build.xml @ 2:59509c585530

successful build.xml
author Robert McIntyre <rlm@mit.edu>
date Tue, 25 Oct 2011 11:18:59 -0700
parents
children a92de00f0414
rev   line source
rlm@2 1 <project name="MyProject" default="dist" basedir=".">
rlm@2 2
rlm@2 3
rlm@2 4 <property name="build" value="build"/>
rlm@2 5 <property name="src" value="src"/>
rlm@2 6 <property name="dist" value="dist"/>
rlm@2 7 <property name="lib" value="lib"/>
rlm@2 8
rlm@2 9 <path id="classpath">
rlm@2 10 <pathelement path="${lib}/jme"/>
rlm@2 11 </path>
rlm@2 12
rlm@2 13 <target name="prepare">
rlm@2 14 <mkdir dir="${build}"/>
rlm@2 15 </target>
rlm@2 16
rlm@2 17 <target name="compile" depends="prepare" >
rlm@2 18 <javac srcdir="${src}" destdir="${build}"
rlm@2 19 classpathref="classpath"
rlm@2 20 includeantruntime="false"/>
rlm@2 21 </target>
rlm@2 22
rlm@2 23 <target name="dist" depends="compile" >
rlm@2 24 <mkdir dir="${dist}"/>
rlm@2 25 <jar jarfile="${dist}/MyProject.jar" basedir="${build}"/>
rlm@2 26 </target>
rlm@2 27
rlm@2 28 <target name="clean" >
rlm@2 29 <delete dir="${build}"/>
rlm@2 30 <delete dir="${dist}"/>
rlm@2 31 </target>
rlm@2 32
rlm@2 33
rlm@2 34 </project>
rlm@2 35