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