1 <project name="MUMail" default="dist" basedir=".">
2 <!-- set global properties for this build -->
3 <property name="src" value="."/>
4 <property name="build" value="build"/>
5 <property name="dist" value="dist"/>
7 <!-- Create the time stamp -->
9 <!-- Create the build directory structure used by compile -->
10 <mkdir dir="${build}"/>
12 <target name="compile" depends="init">
13 <!-- Compile the java code from ${src} into ${build} -->
14 <javac srcdir="${src}" destdir="${build}"/>
16 <target name="dist" depends="compile">
17 <!-- Create the distribution directory -->
18 <mkdir dir="${dist}/lib"/>
19 <!-- Put everything in ${build} into the MUMail-${DSTAMP}.jar file -->
20 <jar jarfile="${dist}/lib/MUMail-${DSTAMP}.jar" basedir="${build}"/>
23 <!-- Delete the ${build} and ${dist} directory trees -->
24 <delete dir="${build}"/>
25 <delete dir="${dist}"/>