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