1 <project name="r4" default="dist" basedir=".">
2 <description>blargh</description>
3 <property name="src" location="src" />
4 <property name="build" location="build" />
5 <property name="dist" location="dist" />
8 <!-- Create the time stamp -->
10 <!-- Create the build directory structure used by compile -->
11 <mkdir dir="${build}"/>
14 <target name="compile" depends="init" description="compile the source" >
15 <!-- Compile the java code from ${src} into ${build} -->
16 <javac srcdir="${src}" destdir="${build}"/>
19 <target name="dist" depends="compile" description="generate the distribution">
20 <!-- Create the distribution directory -->
21 <mkdir dir="${dist}/lib"/>
23 <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
24 <jar jarfile="${dist}/lib/r4-${DSTAMP}.jar" basedir="${build}"/>
28 description="clean up" >
29 <!-- Delete the ${build} and ${dist} directory trees -->
30 <delete dir="${build}"/>
31 <delete dir="${dist}"/>