This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 197038
Collapse All | Expand All

(-)2fb5fcb0c0b8 (+39 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="build-download" default="build" basedir=".">
3
    <description>Downloads NetBeans distribution</description>
4
5
    <condition property="download.netbeans">
6
        <and>
7
            <not><available file="${harness.dir}/suite.xml"/></not>
8
            <isset property="bootstrap.url"/>
9
            <isset property="autoupdate.catalog.url"/>
10
        </and>
11
    </condition>
12
13
    <target name="prepare" depends="-download">
14
        <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly.">
15
            <condition>
16
                <not>
17
                    <available type="dir" file="${harness.dir}"/>
18
                </not>
19
            </condition>
20
        </fail>
21
    </target>        
22
        
23
    <target name="-download" if="download.netbeans">
24
        <mkdir dir="${harness.dir}"/>
25
        <pathconvert pathsep="|" property="download.clusters">
26
            <mapper type="flatten"/>
27
            <path path="${cluster.path}"/>
28
        </pathconvert>
29
        <echo message="Downloading clusters ${download.clusters}"/>
30
        <get src="${bootstrap.url}" dest="${harness.dir}/tasks.jar" usetimestamp="true" verbose="true"/>
31
        <taskdef
32
            name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate"
33
            classpath="${harness.dir}/tasks.jar"
34
        />
35
        <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
36
            <modules includes=".*" clusters="harness|${download.clusters}"/>
37
        </autoupdate>
38
    </target>
39
</project>
(-)a/nbproject/build-impl.xml (-7 / +1 lines)
Lines 38-49 Link Here
38
            </not>
38
            </not>
39
        </condition>
39
        </condition>
40
    </fail>
40
    </fail>
41
    <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly.">
41
    <ant antfile="nbproject/build-download.xml" target="prepare"/>
42
        <condition>
43
            <not>
44
                <available type="dir" file="${harness.dir}"/>
45
            </not>
46
        </condition>
47
    </fail>
48
    <import file="${harness.dir}/suite.xml"/>
42
    <import file="${harness.dir}/suite.xml"/>
49
</project>
43
</project>
(-)a/nbproject/platform.properties (+4 lines)
Lines 8-10 Link Here
8
nbplatform.downloaded.label=Downloaded Platform
8
nbplatform.downloaded.label=Downloaded Platform
9
nbplatform.downloaded.netbeans.dest.dir=${suite.dir}/tmp/netbeans
9
nbplatform.downloaded.netbeans.dest.dir=${suite.dir}/tmp/netbeans
10
10
11
bootstrap.url=file:///home/jarda/src/netbeans/netbinox/tasks.jar
12
autoupdate.catalog.url=file:///home/jarda/src/netbeans/netbinox/download/mirror/updates.xml
13
14

Return to bug 197038