changeset 2:59509c585530

successful build.xml
author Robert McIntyre <rlm@mit.edu>
date Tue, 25 Oct 2011 11:18:59 -0700
parents ada15b78104c
children a92de00f0414
files .hgignore build.xml
diffstat 2 files changed, 36 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/.hgignore	Tue Oct 25 11:18:00 2011 -0700
     1.2 +++ b/.hgignore	Tue Oct 25 11:18:59 2011 -0700
     1.3 @@ -4,7 +4,7 @@
     1.4  .project
     1.5  .settings*
     1.6  bin*
     1.7 -build*
     1.8 +build/*
     1.9  dist*
    1.10  lib*
    1.11  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/build.xml	Tue Oct 25 11:18:59 2011 -0700
     2.3 @@ -0,0 +1,35 @@
     2.4 +<project name="MyProject" default="dist" basedir="."> 
     2.5 +
     2.6 +
     2.7 +  <property name="build" value="build"/>
     2.8 +  <property name="src" value="src"/>
     2.9 +  <property name="dist" value="dist"/>
    2.10 +  <property name="lib"  value="lib"/>
    2.11 +
    2.12 +  <path id="classpath">
    2.13 +    <pathelement path="${lib}/jme"/>
    2.14 +  </path>
    2.15 +
    2.16 +  <target name="prepare">
    2.17 +    <mkdir dir="${build}"/>
    2.18 +  </target>
    2.19 +
    2.20 +  <target name="compile" depends="prepare" >
    2.21 +    <javac srcdir="${src}" destdir="${build}"
    2.22 +	   classpathref="classpath"
    2.23 +	   includeantruntime="false"/>
    2.24 +  </target>
    2.25 +
    2.26 +  <target name="dist" depends="compile" >
    2.27 +    <mkdir dir="${dist}"/> 
    2.28 +    <jar jarfile="${dist}/MyProject.jar" basedir="${build}"/>
    2.29 +  </target>
    2.30 +
    2.31 +  <target name="clean" > 
    2.32 +    <delete dir="${build}"/> 
    2.33 +    <delete dir="${dist}"/> 
    2.34 +  </target> 
    2.35 +
    2.36 +
    2.37 +</project>
    2.38 +