Add manual junit download to fix ClassNotFoundException on jenkins.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="xml" basedir=".">
3 <mkdir dir=".hg"/> <!-- just in case -->
4 <get src="http://download.netbeans.org/netbeans/7.0/final/zip/netbeans-7.0-201104080000-ml-javase.zip" dest=".hg" skipexisting="true" verbose="true"/>
5 <unzip src=".hg/netbeans-7.0-201104080000-ml-javase.zip" dest=".hg"/>
6 <import file="nbproject/build-impl.xml"/>
8 <available property="junit-installed" file=".hg/netbeans/platform/modules/org-netbeans-libs-junit4.jar"/>
10 <target name="downloadbinaries-tasks">
11 <taskdef classpath="${nbplatform.nb70.harness.dir}/tasks.jar" resource="org/netbeans/nbbuild/taskdefs.properties"/>
14 <target name="downloadbinaries-junit" depends="downloadbinaries-tasks" unless="junit-installed">
15 <autoupdate installDir=".hg/netbeans"
16 updatecenter="http://updates.netbeans.org/netbeans/updates/7.0/uc/final/certified/catalog.xml.gz">
17 <modules includes="org.netbeans.libs.junit4"/>
21 <target name="downloadbinaries" depends="downloadbinaries-junit" description="Download external binaries not stored in Mercurial sources.">
22 <property file="${user.home}/.nbbuild.properties"/> <!-- permit binaries.cache to be overridden -->
23 <property name="binaries.cache" location="${user.home}/.hgexternalcache"/>
24 <property name="binaries.server" value="http://hg.netbeans.org/binaries/"/>
25 <downloadbinaries cache="${binaries.cache}" server="${binaries.server}">
27 <include name="*/external/binaries-list"/>
31 <target name="-init" depends="suite.-init,downloadbinaries"/>
32 <target name="test-unit" depends="-init" description="Runs unit tests for all modules in the suite.">
33 <sortsuitemodules unsortedmodules="${modules}" sortedmodulesproperty="modules.test.sorted" sorttests="true"/>
34 <property name="continue.after.failing.tests" value="true"/> <!-- fallback -->
35 <subant target="test-unit" buildpath="${modules.test.sorted}" inheritrefs="false" inheritall="false">
36 <property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects -->
37 <property name="continue.after.failing.tests" value="${continue.after.failing.tests}"/>