view 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
line wrap: on
line source
1 <project name="MyProject" default="dist" basedir=".">
4 <property name="build" value="build"/>
5 <property name="src" value="src"/>
6 <property name="dist" value="dist"/>
7 <property name="lib" value="lib"/>
9 <path id="classpath">
10 <pathelement path="${lib}/jme"/>
11 </path>
13 <target name="prepare">
14 <mkdir dir="${build}"/>
15 </target>
17 <target name="compile" depends="prepare" >
18 <javac srcdir="${src}" destdir="${build}"
19 classpathref="classpath"
20 includeantruntime="false"/>
21 </target>
23 <target name="dist" depends="compile" >
24 <mkdir dir="${dist}"/>
25 <jar jarfile="${dist}/MyProject.jar" basedir="${build}"/>
26 </target>
28 <target name="clean" >
29 <delete dir="${build}"/>
30 <delete dir="${dist}"/>
31 </target>
34 </project>