1.1 --- a/samples/apifest1/day3-intermezzo/jtulach/against-pinbasedsolution/build.xml Sat Jun 14 09:52:45 2008 +0200
1.2 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-pinbasedsolution/build.xml Sat Jun 14 09:52:49 2008 +0200
1.3 @@ -12,10 +12,11 @@
1.4
1.5 <target name="compile" depends="make-sure-projects-are-compiled">
1.6 <mkdir dir="build/tests"/>
1.7 + <echo level="info" message="Compiling the tests against old version of the API"/>
1.8 <javac destdir="build/tests" srcdir="test">
1.9 <classpath>
1.10 <pathelement location="${apiA}"/>
1.11 - <pathelement location="${apifest}/lib/junit-3.8.2.jar"/>
1.12 + <pathelement location="${junit.jar}"/>
1.13 </classpath>
1.14 </javac>
1.15 </target>
1.16 @@ -33,7 +34,9 @@
1.17
1.18 <target name="-run-binary-check" depends="compile">
1.19 <mkdir dir="build/testresultA"/>
1.20 - <junit dir="build/tests" failureproperty="run.on.A.shall.succeed">
1.21 +
1.22 + <echo level="info" message="Running the tests against old version of the API"/>
1.23 + <junit dir="build/tests" failureproperty="run.on.A.shall.succeed" fork="true">
1.24 <batchtest todir="build/testresultA">
1.25 <fileset dir="test" includes="**/*.java"/>
1.26 </batchtest>
1.27 @@ -41,13 +44,14 @@
1.28 <formatter type="xml"/>
1.29 <classpath>
1.30 <pathelement location="${apiA}"/>
1.31 - <pathelement location="${apifest}/lib/junit-3.8.2.jar"/>
1.32 + <pathelement location="${junit.jar}"/>
1.33 <pathelement location="build/tests"/>
1.34 </classpath>
1.35 </junit>
1.36
1.37 <mkdir dir="build/testresultB"/>
1.38 - <junit dir="build/tests" failureproperty="run.on.B.shall.fail">
1.39 + <echo level="info" message="Running the same tests against new version of the API, this should fail, if there is binary or functional incompatibility"/>
1.40 + <junit dir="build/tests" failureproperty="run.on.B.shall.fail" fork="true">
1.41 <batchtest todir="build/testresultB">
1.42 <fileset dir="test" includes="**/*.java"/>
1.43 </batchtest>
1.44 @@ -55,7 +59,7 @@
1.45 <formatter type="xml"/>
1.46 <classpath>
1.47 <pathelement location="${apiB}"/>
1.48 - <pathelement location="${apifest}/lib/junit-3.8.2.jar"/>
1.49 + <pathelement location="${junit.jar}"/>
1.50 <pathelement location="build/tests"/>
1.51 </classpath>
1.52 </junit>
1.53 @@ -73,10 +77,13 @@
1.54 <property name="build.b" location="build/verifyitbuildsagainstB"/>
1.55 <delete dir="${build.b}"/>
1.56 <mkdir dir="${build.b}"/>
1.57 - <javac destdir="${build.b}" srcdir="test" failonerror="false">
1.58 +
1.59 +
1.60 + <echo level="info" message="Verifying source compatibility: Compiling the tests against new version of the API"/>
1.61 + <javac destdir="${build.b}" srcdir="test" failonerror="false" fork="true">
1.62 <classpath>
1.63 <pathelement location="${apiB}"/>
1.64 - <pathelement location="${apifest}/lib/junit-3.8.2.jar"/>
1.65 + <pathelement location="${junit.jar}"/>
1.66 </classpath>
1.67 </javac>
1.68