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