build.xml
Download build.xml
1: <project name="Howdy" default="dist" basedir=".">
2: <description> simple ant build file for Howdy </description>
3: <!-- set global properties for this build -->
4: <property name="src" location="src"/>
5: <property name="build" location="build"/>
6: <property name="dist" location="dist"/>
7:
8: <target name="init">
9: <!-- Create the time stamp -->
10: <tstamp/>
11: <!-- Create the build directory structure used by compile -->
12: <mkdir dir="${build}"/>
13: </target>
14:
15: <target name="compile" depends="init"
16: description="compile the source " >
17: <!-- Compile the java code from ${src} into ${build} -->
18: <javac srcdir="${src}" destdir="${build}"/>
19: </target>
20:
21: <target name="dist" depends="compile"
22: description="generate the distribution" >
23: <!-- Create the distribution directory -->
24: <mkdir dir="${dist}"/>
25:
26: <!-- Put everything in ${build} into the file Howdy-${DSTAMP}.jar -->
27: <jar jarfile="${dist}/Howdy-${DSTAMP}.jar" basedir="${build}"/>
28: </target>
29:
30: <target name="clean"
31: description="clean up" >
32: <!-- Delete the ${build} and ${dist} directory trees -->
33: <delete dir="${build}"/>
34: <delete dir="${dist}"/>
35: </target>
36: </project>