make/netbeans/nb-javac-modules/nbproject/platform.xml
author Svata Dedic <sdedic@netbeans.org>
Fri, 20 Apr 2018 16:02:37 +0200
branchapache-netbeans
changeset 5964 22d3043bc53f
permissions -rw-r--r--
NB Javac modules buildscripts
sdedic@5964
     1
<?xml version="1.0" encoding="UTF-8"?>
sdedic@5964
     2
<project name="platform" default="download" basedir="..">
sdedic@5964
     3
    <condition property="download.required">
sdedic@5964
     4
        <and>
sdedic@5964
     5
            <not>
sdedic@5964
     6
                <available file="${harness.dir}/suite.xml"/>
sdedic@5964
     7
            </not>
sdedic@5964
     8
            <isset property="bootstrap.url"/>
sdedic@5964
     9
            <isset property="autoupdate.catalog.url"/>
sdedic@5964
    10
        </and>
sdedic@5964
    11
    </condition>
sdedic@5964
    12
    <target name="download" if="download.required">
sdedic@5964
    13
        <mkdir dir="${harness.dir}"/>
sdedic@5964
    14
        <pathconvert pathsep="|" property="download.clusters">
sdedic@5964
    15
            <mapper type="flatten"/>
sdedic@5964
    16
            <path path="${cluster.path}"/>
sdedic@5964
    17
        </pathconvert>
sdedic@5964
    18
        <property name="disabled.modules" value=""/>
sdedic@5964
    19
        <pathconvert property="module.includes" pathsep="">
sdedic@5964
    20
            <mapper type="glob" from="${basedir}${file.separator}*" to="(?!^\Q*\E$)"/>
sdedic@5964
    21
            <path>
sdedic@5964
    22
                <filelist files="${disabled.modules}" dir="."/>
sdedic@5964
    23
            </path>
sdedic@5964
    24
        </pathconvert>
sdedic@5964
    25
        <echo message="Downloading clusters ${download.clusters}"/>
sdedic@5964
    26
        <property name="tasks.jar" location="${java.io.tmpdir}/tasks.jar"/>
sdedic@5964
    27
        <get src="${bootstrap.url}" dest="${tasks.jar}" usetimestamp="true" verbose="true"/>
sdedic@5964
    28
        <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${tasks.jar}"/>
sdedic@5964
    29
        <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
sdedic@5964
    30
            <modules includes="${module.includes}.*" clusters="${download.clusters}"/>
sdedic@5964
    31
            <modules includes="org[.]netbeans[.]modules[.]apisupport[.]harness" clusters="harness"/>
sdedic@5964
    32
        </autoupdate>
sdedic@5964
    33
    </target>
sdedic@5964
    34
</project>