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