1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- You may freely edit this file. See harness/README in the NetBeans platform -->
3 <!-- for some information on what you could do (e.g. targets to override). -->
4 <!-- If you delete this file and reopen the project it will be recreated. -->
5 <project name="plsql support" basedir="." default="netbeans">
6 <description>Builds the module suite plsql support.</description>
8 <property file="build.properties"/>
9 <property file="nbproject/private/platform-private.properties"/>
10 <property file="nbproject/platform.properties"/>
12 <property name="use.timestamp" value="true"/>
13 <property name="timestamp.file" value=".lastModified"/>
15 <property environment="env"/>
16 <condition property="build.id" value="${env.BUILD_ID}" else="dev">
17 <isset property="env.BUILD_ID"/>
20 <target name="calculate-netbeans-url" unless="skip.calculation">
21 <get src="${netbeans.base.url}" dest="netbeans.html" usetimestamp="${use.timestamp}" verbose="true" ignoreerrors="${offline}"/>
22 <loadfile srcfile="netbeans.html" property="netbeans.binaries.url">
25 <containsregex pattern=".*href="(netbeans-[a-z0-9-.]*javaee\.zip)".*" replace="${netbeans.base.url}/\1" flags="im"/>
31 <target name="download-binaries" depends="calculate-netbeans-url" unless="skip.download">
33 <get src="${netbeans.binaries.url}" dest="netbeans.zip" usetimestamp="${use.timestamp}" verbose="false" ignoreerrors="${offline}"/>
37 <target name="check-binaries">
38 <condition property="binaries.uptodate">
40 <uptodate targetfile="${timestamp.file}">
41 <srcfiles dir="." includes="*.zip"/>
47 <target name="unzip-binaries" unless="binaries.uptodate">
48 <echo message="New binaries downloaded - re-installing."/>
50 <unzip src="netbeans.zip" dest="ide"/>
51 <touch file="${timestamp.file}"/>
54 <target name="update-binaries" depends="download-binaries,check-binaries,unzip-binaries"/>
56 <target name="check-harness">
57 <echo>nbplatform.default.netbeans.dest.dir resolved to ${nbplatform.default.netbeans.dest.dir}</echo>
58 <echo>nbplatform.default.harness.dir resolved to ${nbplatform.default.harness.dir}</echo>
59 <fail message="Harness is missing. Specify nbplatform.default.netbeans.dest.dir={path-to-your-sources-root}/ide/netbeans in nbproject/private/platform-private.propetries">
62 <available file="${nbplatform.default.harness.dir}" type="dir"/>
68 <target name="build-suite" depends="check-harness">
69 <ant antfile="build-suite.xml" target="build" inheritAll="false"/>
72 <target name="printinfo">
73 <property environment="env" />
74 <echo message="${env.BUILD_TAG}"/>
75 <echo message="${env.JAVA_HOME}"/>
78 <target name="netbeans" depends="update-binaries,build-suite"/>
79 <target name="build" depends="netbeans"/>
82 <echo>nbplatform.default.netbeans.dest.dir resolved to ${nbplatform.default.netbeans.dest.dir}</echo>
83 <echo>nbplatform.default.harness.dir resolved to ${nbplatform.default.harness.dir}</echo>
84 <ant antfile="build-suite.xml" target="clean" inheritAll="false"/>
87 <target name="real-clean" depends="clean">
88 <echo message="Cleaning netbeans IDE"/>
93 <fileset dir="." includes="*.zip"/>
96 <fileset dir="." includes="*.html"/>
98 <delete file="${timestamp.file}"/>
101 <target name="nbms" depends="update-binaries">
102 <ant antfile="build-suite.xml" target="nbms" inheritAll="false"/>
105 <target name="daily" depends="update-binaries,build">
107 <zip destfile="dist/netbeans-trunk-${build.id}-plsql.zip" duplicate="add">
108 <zipfileset dir="build/cluster" prefix="netbeans/extra"/>
109 <zipfileset dir="ide/netbeans" prefix="netbeans"/>