Getting all binary dependencies.
authorJesse Glick <jglick@netbeans.org>
Fri, 22 Apr 2011 15:05:11 -0400
changeset 4890e589eeaae087
parent 4889 066f950aecc0
child 4891 fa2f6f3c723d
Getting all binary dependencies.
build.xml
nbproject/platform.properties
     1.1 --- a/build.xml	Fri Apr 22 14:36:23 2011 -0400
     1.2 +++ b/build.xml	Fri Apr 22 15:05:11 2011 -0400
     1.3 @@ -1,8 +1,31 @@
     1.4  <?xml version="1.0" encoding="UTF-8"?>
     1.5 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
     1.6 -<!-- for some information on what you could do (e.g. targets to override). -->
     1.7 -<!-- If you delete this file and reopen the project it will be recreated. -->
     1.8  <project name="soa" basedir=".">
     1.9 -    <description>Builds the module suite soa.</description>
    1.10 +    <mkdir dir=".hg"/> <!-- just in case -->
    1.11 +    <get src="http://download.netbeans.org/netbeans/7.0/final/zip/netbeans-7.0-201104080000-ml-javaee.zip" dest=".hg" skipexisting="true" verbose="true"/>
    1.12 +    <unzip src=".hg/netbeans-7.0-201104080000-ml-javaee.zip" dest=".hg"/>
    1.13      <import file="nbproject/build-impl.xml"/>
    1.14 +    <target name="downloadbinaries" description="Download external binaries not stored in Mercurial sources.">
    1.15 +        <taskdef classpath="${nbplatform.nb70.harness.dir}/tasks.jar" resource="org/netbeans/nbbuild/taskdefs.properties"/>
    1.16 +        <property file="${user.home}/.nbbuild.properties"/> <!-- permit binaries.cache to be overridden -->
    1.17 +        <property name="binaries.cache" location="${user.home}/.hgexternalcache"/>
    1.18 +        <property name="binaries.server" value="http://hg.netbeans.org/binaries/"/>
    1.19 +        <downloadbinaries cache="${binaries.cache}" server="${binaries.server}">
    1.20 +            <manifest dir=".">
    1.21 +                <include name="*/external/binaries-list"/>
    1.22 +            </manifest>
    1.23 +        </downloadbinaries>
    1.24 +        <mkdir dir=".hg/xml"/>
    1.25 +        <autoupdate updatecenter="http://deadlock.netbeans.org/hudson/job/xml/lastSuccessfulBuild/artifact/build/updates/updates.xml" todir=".hg/xml">
    1.26 +            <modules includes=".+"/>
    1.27 +        </autoupdate>
    1.28 +    </target>
    1.29 +    <target name="-init" depends="suite.-init,downloadbinaries"/>
    1.30 +    <target name="test-unit" depends="-init" description="Runs unit tests for all modules in the suite.">
    1.31 +        <sortsuitemodules unsortedmodules="${modules}" sortedmodulesproperty="modules.test.sorted" sorttests="true"/>
    1.32 +        <property name="continue.after.failing.tests" value="true"/> <!-- fallback -->
    1.33 +        <subant target="test-unit" buildpath="${modules.test.sorted}" inheritrefs="false" inheritall="false">
    1.34 +            <property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects -->
    1.35 +            <property name="continue.after.failing.tests" value="${continue.after.failing.tests}"/>
    1.36 +        </subant>
    1.37 +    </target>
    1.38  </project>
     2.1 --- a/nbproject/platform.properties	Fri Apr 22 14:36:23 2011 -0400
     2.2 +++ b/nbproject/platform.properties	Fri Apr 22 15:05:11 2011 -0400
     2.3 @@ -1,8 +1,13 @@
     2.4  cluster.path=\
     2.5 +    ${nbplatform.active.dir}/enterprise:\
     2.6      ${nbplatform.active.dir}/harness:\
     2.7      ${nbplatform.active.dir}/ide:\
     2.8      ${nbplatform.active.dir}/java:\
     2.9      ${nbplatform.active.dir}/nb:\
    2.10      ${nbplatform.active.dir}/platform:\
    2.11 -    ${nbplatform.active.dir}/websvccommon
    2.12 -nbplatform.active=default
    2.13 +    ${nbplatform.active.dir}/websvccommon:\
    2.14 +    .hg/xml
    2.15 +nbplatform.active=nb70
    2.16 +nbplatform.nb70.netbeans.dest.dir=${suite.dir}/.hg/netbeans
    2.17 +nbplatform.nb70.harness.dir=${nbplatform.nb70.netbeans.dest.dir}/harness
    2.18 +suite.dir=${basedir}