1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="forjoe" default="run" basedir=".">
8 <antcall target="-build-one">
9 <param name="version" value="api1.0"/>
11 <echo level="info" message="Compiling the Implementation. This should succeed."/>
12 <antcall target="-build-one">
13 <param name="version" value="impl"/>
14 <param name="cp" location="build/api1.0/classes"/>
18 <target name="run" depends="build">
19 <echo level="info" message="Instantiating and running Joe's implementation. This should succeed."/>
20 <antcall target="-run-one">
21 <param name="version" value="api1.0"/>
26 <!-- support methods -->
28 <target name="-run-one">
29 <fail message="You need to specify API version number" unless="version"/>
30 <java classpath="build/${version}/classes:build/impl/classes" classname="impl.joe.Main"
35 <target name="-build-one">
36 <fail message="You need to specify version number" unless="version"/>
38 <mkdir dir="build/${version}/classes"/>
39 <property name="cp" value=""/>
41 srcdir="src-${version}"
42 destdir="build/${version}/classes"
43 source="1.5" target="1.5"