1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="instanceofclass" default="run" basedir=".">
8 <antcall target="-build-one">
9 <param name="version" value="api1.0"/>
11 <antcall target="-build-one">
12 <param name="version" value="api2.0"/>
16 <target name="run" depends="build">
17 <echo level="info" message="Running the Implementation against Version 1.0 of the API. This should succeed."/>
18 <antcall target="-run-one">
19 <param name="version" value="api1.0"/>
21 <echo level="info" message="Running the Implementation against Version 2.0 of the API. This should succeed."/>
22 <antcall target="-run-one">
23 <param name="version" value="api2.0"/>
28 <!-- support methods -->
30 <target name="-run-one">
31 <fail message="You need to specify API version number" unless="version"/>
32 <java classpath="build/${version}/classes:build/impl/classes" classname="impl.Main"
37 <target name="-build-one">
38 <fail message="You need to specify version number" unless="version"/>
40 <mkdir dir="build/${version}/classes"/>
41 <property name="cp" value=""/>
43 srcdir="src-${version}"
44 destdir="build/${version}/classes"
45 source="1.5" target="1.5"