build.xml
author Milutin Kristofic <mkristofic@netbeans.org>
Mon, 30 Jan 2017 14:30:54 +0100
changeset 1583 fe20f672a61a
parent 1580 95d5e2181abc
permissions -rw-r--r--
Added Missing copyright information in source files
jglick@1568
     1
<?xml version="1.0" encoding="UTF-8"?>
mkristofic@1583
     2
<!--
mkristofic@1583
     3
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
mkristofic@1583
     4
mkristofic@1583
     5
Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
mkristofic@1583
     6
mkristofic@1583
     7
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
mkristofic@1583
     8
Other names may be trademarks of their respective owners.
mkristofic@1583
     9
mkristofic@1583
    10
The contents of this file are subject to the terms of either the GNU
mkristofic@1583
    11
General Public License Version 2 only ("GPL") or the Common
mkristofic@1583
    12
Development and Distribution License("CDDL") (collectively, the
mkristofic@1583
    13
"License"). You may not use this file except in compliance with the
mkristofic@1583
    14
License. You can obtain a copy of the License at
mkristofic@1583
    15
http://www.netbeans.org/cddl-gplv2.html
mkristofic@1583
    16
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
mkristofic@1583
    17
specific language governing permissions and limitations under the
mkristofic@1583
    18
License.  When distributing the software, include this License Header
mkristofic@1583
    19
Notice in each file and include the License file at
mkristofic@1583
    20
nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
mkristofic@1583
    21
particular file as subject to the "Classpath" exception as provided
mkristofic@1583
    22
by Oracle in the GPL Version 2 section of the License file that
mkristofic@1583
    23
accompanied this code. If applicable, add the following below the
mkristofic@1583
    24
License Header, with the fields enclosed by brackets [] replaced by
mkristofic@1583
    25
your own identifying information:
mkristofic@1583
    26
"Portions Copyrighted [year] [name of copyright owner]"
mkristofic@1583
    27
mkristofic@1583
    28
Contributor(s):
mkristofic@1583
    29
mkristofic@1583
    30
The Original Software is NetBeans. The Initial Developer of the Original
mkristofic@1583
    31
Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
mkristofic@1583
    32
Microsystems, Inc. All Rights Reserved.
mkristofic@1583
    33
mkristofic@1583
    34
If you wish your version of this file to be governed by only the CDDL
mkristofic@1583
    35
or only the GPL Version 2, indicate your decision by adding
mkristofic@1583
    36
"[Contributor] elects to include this software in this distribution
mkristofic@1583
    37
under the [CDDL or GPL Version 2] license." If you do not indicate a
mkristofic@1583
    38
single choice of license, a recipient has the option to distribute
mkristofic@1583
    39
your version of this file under either the CDDL, the GPL Version 2 or
mkristofic@1583
    40
to extend the choice of license to its licensees as provided above.
mkristofic@1583
    41
However, if you add GPL Version 2 code and therefore, elected the GPL
mkristofic@1583
    42
Version 2 license, then the option applies only if the new code is
mkristofic@1583
    43
made subject to such option by the copyright holder.
mkristofic@1583
    44
-->
jglick@1568
    45
<project name="xml" basedir=".">
jglick@1575
    46
    <mkdir dir=".hg"/> <!-- just in case -->
jglick@1575
    47
    <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
    48
    <unzip src=".hg/netbeans-7.0-201104080000-ml-javase.zip" dest=".hg"/>
jglick@1568
    49
    <import file="nbproject/build-impl.xml"/>
fvogler@1580
    50
    
fvogler@1580
    51
    <available property="junit-installed" file=".hg/netbeans/platform/modules/org-netbeans-libs-junit4.jar"/>
fvogler@1580
    52
    
fvogler@1580
    53
    <target name="downloadbinaries-tasks">
jglick@1577
    54
        <taskdef classpath="${nbplatform.nb70.harness.dir}/tasks.jar" resource="org/netbeans/nbbuild/taskdefs.properties"/>
fvogler@1580
    55
    </target>
fvogler@1580
    56
    
fvogler@1580
    57
    <target name="downloadbinaries-junit" depends="downloadbinaries-tasks" unless="junit-installed">
fvogler@1580
    58
        <autoupdate installDir=".hg/netbeans"
fvogler@1580
    59
            updatecenter="http://updates.netbeans.org/netbeans/updates/7.0/uc/final/certified/catalog.xml.gz">
fvogler@1580
    60
            <modules includes="org.netbeans.libs.junit4"/>
fvogler@1580
    61
        </autoupdate> 
fvogler@1580
    62
    </target>
fvogler@1580
    63
    
fvogler@1580
    64
    <target name="downloadbinaries" depends="downloadbinaries-junit" description="Download external binaries not stored in Mercurial sources.">
jglick@1569
    65
        <property file="${user.home}/.nbbuild.properties"/> <!-- permit binaries.cache to be overridden -->
jglick@1569
    66
        <property name="binaries.cache" location="${user.home}/.hgexternalcache"/>
jglick@1569
    67
        <property name="binaries.server" value="http://hg.netbeans.org/binaries/"/>
jglick@1569
    68
        <downloadbinaries cache="${binaries.cache}" server="${binaries.server}">
jglick@1569
    69
            <manifest dir=".">
jglick@1569
    70
                <include name="*/external/binaries-list"/>
jglick@1569
    71
            </manifest>
jglick@1569
    72
        </downloadbinaries>
jglick@1569
    73
    </target>
jglick@1569
    74
    <target name="-init" depends="suite.-init,downloadbinaries"/>
jglick@1574
    75
    <target name="test-unit" depends="-init" description="Runs unit tests for all modules in the suite.">
jglick@1574
    76
        <sortsuitemodules unsortedmodules="${modules}" sortedmodulesproperty="modules.test.sorted" sorttests="true"/>
jglick@1574
    77
        <property name="continue.after.failing.tests" value="true"/> <!-- fallback -->
jglick@1574
    78
        <subant target="test-unit" buildpath="${modules.test.sorted}" inheritrefs="false" inheritall="false">
jglick@1574
    79
            <property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects -->
jglick@1574
    80
            <property name="continue.after.failing.tests" value="${continue.after.failing.tests}"/>
jglick@1574
    81
        </subant>
jglick@1574
    82
    </target>
jglick@1568
    83
</project>