Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="Build Script" default="test" basedir=".">
7 <target name="compile" depends="build"/>
8 <target name="build" depends="-libraries">
9 <antcall target="-build-one">
10 <param name="version" value="api1.0"/>
12 <antcall target="-build-one">
13 <param name="version" value="api2.0"/>
16 <antcall target="-build-one">
17 <param name="version" value="test"/>
18 <param name="cp" value="build/api1.0/classes:${junit.jar}"/>
22 <target name="test" depends="build">
23 <echo level="info" message="Running the Implementation against Version 1.0 of the API. This should succeeds."/>
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 fail."/>
28 <antcall target="-run-one">
29 <param name="version" value="api2.0"/>
33 <!-- support methods -->
35 <target name="-libraries">
38 <property name="junit.jar" location="../libs/dist/junit-4.4.jar"/>
41 <target name="-run-one">
42 <fail message="You need to specify API version number" unless="version"/>
43 <mkdir dir="build/testresults"/>
44 <junit dir="build/test/classes" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
45 <batchtest todir="build/testresults">
46 <fileset dir="build/test/classes">
47 <filename name="**/*Test.class"/>
51 <path location="build/${version}/classes"/>
52 <path location="build/test/classes"/>
53 <path location="${junit.jar}"/>
55 <formatter type="brief" usefile="false"/>
56 <formatter type="xml"/>
60 <target name="-build-one">
61 <fail message="You need to specify version number" unless="version"/>
63 <mkdir dir="build/${version}/classes"/>
64 <property name="cp" value=""/>
66 srcdir="src-${version}"
67 destdir="build/${version}/classes"
68 source="1.5" target="1.5"