1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="insertsuperclass" 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"/>
15 <echo level="info" message="Compiling the Implementation against Version 1.0 of the API. This should succeed."/>
16 <antcall target="-build-one">
17 <param name="version" value="impl"/>
18 <param name="cp" location="build/api1.0/classes"/>
22 <target name="run" depends="build">
23 <echo level="info" message="Running the Implementation against Version 1.0 of the API. This should succeed."/>
24 <antcall target="-run-one">
25 <param name="version" value="api1.0"/>
27 <echo level="info" message="Running the Implementation against Version 2.0 of the API. This should succeed."/>
28 <antcall target="-run-one">
29 <param name="version" value="api2.0"/>
34 <!-- support methods -->
36 <target name="-run-one">
37 <fail message="You need to specify API version number" unless="version"/>
38 <java classpath="build/${version}/classes:build/impl/classes" classname="impl.Main"
43 <target name="-build-one">
44 <fail message="You need to specify version number" unless="version"/>
46 <mkdir dir="build/${version}/classes"/>
47 <property name="cp" value=""/>
49 srcdir="src-${version}"
50 destdir="build/${version}/classes"
51 source="1.5" target="1.5"