diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build.xml	Tue Oct 25 11:18:59 2011 -0700
     1.3 @@ -0,0 +1,35 @@
     1.4 +<project name="MyProject" default="dist" basedir="."> 
     1.5 +
     1.6 +
     1.7 +  <property name="build" value="build"/>
     1.8 +  <property name="src" value="src"/>
     1.9 +  <property name="dist" value="dist"/>
    1.10 +  <property name="lib"  value="lib"/>
    1.11 +
    1.12 +  <path id="classpath">
    1.13 +    <pathelement path="${lib}/jme"/>
    1.14 +  </path>
    1.15 +
    1.16 +  <target name="prepare">
    1.17 +    <mkdir dir="${build}"/>
    1.18 +  </target>
    1.19 +
    1.20 +  <target name="compile" depends="prepare" >
    1.21 +    <javac srcdir="${src}" destdir="${build}"
    1.22 +	   classpathref="classpath"
    1.23 +	   includeantruntime="false"/>
    1.24 +  </target>
    1.25 +
    1.26 +  <target name="dist" depends="compile" >
    1.27 +    <mkdir dir="${dist}"/> 
    1.28 +    <jar jarfile="${dist}/MyProject.jar" basedir="${build}"/>
    1.29 +  </target>
    1.30 +
    1.31 +  <target name="clean" > 
    1.32 +    <delete dir="${build}"/> 
    1.33 +    <delete dir="${dist}"/> 
    1.34 +  </target> 
    1.35 +
    1.36 +
    1.37 +</project>
    1.38 +