1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="primitiveconstants" 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 <antcall target="-build-one">
15 <param name="version" value="impl"/>
16 <param name="cp" location="build/api1.0/classes"/>
20 <target name="run" depends="build">
21 <echo message="Running the Implementation against Version 1.0 of the API. This should succeeds."/>
22 <antcall target="-run-one">
23 <param name="version" value="api1.0"/>
25 <echo message="Running the Implementation against Version 2.0 of the API. This should fail."/>
26 <antcall target="-run-one">
27 <param name="version" value="api2.0"/>
32 <!-- support methods -->
34 <target name="-run-one">
35 <fail message="You need to specify API version number" unless="version"/>
36 <java classpath="build/${version}/classes:build/impl/classes" classname="impl.Impl"
41 <target name="-build-one">
42 <fail message="You need to specify version number" unless="version"/>
44 <mkdir dir="build/${version}/classes"/>
45 <property name="cp" value=""/>
47 srcdir="src-${version}"
48 destdir="build/${version}/classes"
49 source="1.4" target="1.4"