blob: a465ae19e2e892f4238eb010b2d15af4817ee5c2 [file] [log] [blame]
<project
default="build"
basedir=".">
<fail
unless="wtp.builder.home"/>
<property
file="${wtp.builder.home}/build.properties"/>
<property
environment="env"/>
<!-- required to get proper value of doCreateFprojZips -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="debug"
message="keyCfgFile: ${keyCfgFile}"/>
<property
file="${keyCfgFile}"/>
<!-- main -->
<target
name="build"
depends="getBaseBuilder">
<dirname
file="${ant.file}"
property="distribution.wtp.build.dir"/>
<property
name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
<!-- for this distribution, dependencies come from releng -->
<property
name="dependency.properties"
value="${buildDirectory}/maps/${env.RELENG}/maps/dependencies.properties"/>
<!-- calling label.xml to createg label.properties file -->
<ant
antfile="${wtp.builder.home}/scripts/build/label.xml"/>
<echo
level="info"
message="invoking buildTargets: ${buildTargets} to build for each component"/>
<!-- minimal runtimes -->
<!--
<ant antfile="${buildTargets}"> <property name="component"
value="common" /> </ant> <ant antfile="${buildTargets}">
<property name="component" value="jsdt" /> </ant> <ant
antfile="${buildTargets}"> <property name="component"
value="xml" /> </ant>
-->
<ant
antfile="${buildTargets}">
<property
name="component"
value="wst"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="wst-sdk"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="wst.tests"/>
<property
name="eclipseBuildFailOnError"
value="false"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jst"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jst-sdk"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jst.tests"/>
<property
name="eclipseBuildFailOnError"
value="false"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="dali"/>
<property
name="eclipseBuildFailOnError"
value="true"/>
</ant>
<!-- extender (SDK) versions -->
<!--
<ant antfile="${buildTargets}"> <property name="component"
value="common-sdk" /> </ant> <ant antfile="${buildTargets}">
<property name="component" value="jsdt-sdk" /> </ant> <ant
antfile="${buildTargets}"> <property name="component"
value="xml-sdk" /> </ant>
-->
<ant
antfile="${buildTargets}">
<property
name="component"
value="dali-sdk"/>
<property
name="eclipseBuildFailOnError"
value="true"/>
</ant>
<!-- JUnit test code -->
<!--
<ant antfile="${buildTargets}"> <property name="component"
value="common.tests" /> <property
name="eclipseBuildFailOnError" value="false" /> </ant> <ant
antfile="${buildTargets}"> <property name="component"
value="jsdt.tests" /> <property
name="eclipseBuildFailOnError" value="false" /> </ant> <ant
antfile="${buildTargets}"> <property name="component"
value="xml.tests" /> <property
name="eclipseBuildFailOnError" value="false" /> </ant>
-->
<ant
antfile="${buildTargets}">
<property
name="component"
value="dali.tests"/>
<property
name="eclipseBuildFailOnError"
value="false"/>
</ant>
<eclipse.mapGenerator
root="${buildDirectory}/${buildLabel}/updateSite/plugins/"
addressPrefix="http://build.eclipse.org/webtools/committers/${projectname}/${buildLabel}/updateSite/"
inputFile="${buildDirectory}/finalPluginsVersions.properties"
outputFile="${buildDirectory}/${buildLabel}/Web-Tools-Platform-${buildLabel}.map"
p2MapFile="${buildDirectory}/${buildLabel}/Web-Tools-Platform-${buildLabel}.p2.map"
p2Repository="http://build.eclipse.org/webtools/committers/${projectname}/${buildLabel}/updateSite" />
<!-- package -->
<antcall
target="package"/>
</target>
<!-- invoking runbuild.xml targetting getBaseBuilder -->
<target
name="getBaseBuilder"
if="eclipse.builder.fetch">
<dirname
file="${ant.file}"
property="wtbuilder.dir"/>
<property
name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
<echo
level="info"
message="invoking buildTargets: ${buildTargets} -> getBaseBuilder"/>
<ant
antfile="${buildTargets}"
target="getBaseBuilder"/>
</target>
<target
name="package">
<!--
post, post packaging, for WTP ... "manually" assemble the
desired zips
-->
<antcall
target="combineArchives">
<param
name="corename"
value=""/>
</antcall>
<antcall
target="combineArchives">
<param
name="corename"
value="-sdk"/>
</antcall>
<antcall
target="combineArchives">
<param
name="corename"
value="-Automated-Tests"/>
</antcall>
<antcall
target="createNoOptionalZip">
<param
name="archiveName"
value="wtp-${buildLabel}.zip"/>
<param
name="newarchiveName"
value="wtp-noop-${buildLabel}.zip"/>
</antcall>
<antcall
target="createNoOptionalZip">
<param
name="archiveName"
value="wtp-sdk-${buildLabel}.zip"/>
<param
name="newarchiveName"
value="wtp-sdk-noop-${buildLabel}.zip"/>
</antcall>
<antcall
target="createFprojZips"/>
</target>
<target
name="createNoOptionalZip">
<zip
destfile="${buildDirectory}/${buildLabel}/${newarchiveName}">
<zipfileset
src="${buildDirectory}/${buildLabel}/${archiveName}"
excludes="eclipse/features/org.eclipse.wst.xsl*/**,eclipse/plugins/org.eclipse.wst.xsl*/**,eclipse/plugins/org.eclipse.jst.ws.axis2*/**,eclipse/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport*/**,eclipse/plugins/org.eclipse.jst.pagedesigner*/**,eclipse/plugins/org.eclipse.jpt.eclipselink*/**,eclipse/features/org.eclipse.jst.ws.axis2tools*/**,eclipse/features/org.eclipse.jst.webpageeditor*/**,eclipse/features/org.eclipse.jst.jsf.apache.trinidad.tagsupport*/**,eclipse/features/org.eclipse.jpt.eclipselink*/**"/>
</zip>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}"/>
<property
name="buildLabel"
value="${buildLabel}"/>
<property
name="archiveName"
value="${newarchiveName}"/>
</ant>
</target>
<target
name="combineArchives">
<property
name="archiveName"
value="wtp${corename}-${buildLabel}.zip"/>
<delete
dir="${buildDirectory}/tempforrezipping"
failonerror="false"/>
<!-- make an empty directory. Can prevent a failure later, when doing some test builds -->
<mkdir dir="${buildDirectory}/tempforrezipping"/>
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-wst${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping"/>
</exec>
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-jst${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping"/>
</exec>
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-jpt${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping"/>
</exec>
<zip
destfile="${buildDirectory}/${buildLabel}/${archiveName}"
basedir="${buildDirectory}/tempforrezipping"
whenempty="create" />
<delete
dir="${buildDirectory}/tempforrezipping"
failonerror="false"/>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}"/>
<property
name="buildLabel"
value="${buildLabel}"/>
<property
name="archiveName"
value="${archiveName}"/>
</ant>
</target>
<!--
Handles packaging of individual Faceted Project Framework
distributions.
-->
<target
name="createFprojZips"
if="doCreateFprojZips">
<delete
file="${buildDirectory}/${buildLabel}/wtp-common-fproj-${buildLabel}.zip"
failonerror="false"/>
<zip
destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-${buildLabel}.zip">
<zipfileset
src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip">
<include
name="eclipse/features/org.eclipse.wst.common.fproj_*/**"/>
<include
name="eclipse/plugins/org.eclipse.wst.common.project.facet.core_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.wst.common.project.facet.ui_*.jar"/>
</zipfileset>
</zip>
<delete
file="${buildDirectory}/${buildLabel}/wtp-common-fproj-sdk-${buildLabel}.zip"
failonerror="false"/>
<zip
destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-sdk-${buildLabel}.zip">
<zipfileset
src="${buildDirectory}/${buildLabel}/wtp-common-fproj-${buildLabel}.zip"/>
<zipfileset
src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip">
<include
name="eclipse/features/org.eclipse.wst.common.fproj.sdk_*/**"/>
<include
name="eclipse/plugins/org.eclipse.wst.common.fproj.sdk_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.wst.common.project.facet.doc.api_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.wst.common.project.facet.core.source_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.wst.common.project.facet.ui.source_*.jar"/>
</zipfileset>
</zip>
<delete
file="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-${buildLabel}.zip"
failonerror="false"/>
<zip
destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-${buildLabel}.zip">
<zipfileset
src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip">
<include
name="eclipse/features/org.eclipse.jst.common.fproj.enablement.jdt_*/**"/>
<include
name="eclipse/plugins/org.eclipse.jst.common.project.facet.core_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.jst.common.project.facet.ui_*.jar"/>
</zipfileset>
</zip>
<delete
file="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-sdk-${buildLabel}.zip"
failonerror="false"/>
<zip
destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-sdk-${buildLabel}.zip">
<zipfileset
src="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-${buildLabel}.zip"/>
<zipfileset
src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip">
<include
name="eclipse/features/org.eclipse.jst.common.fproj.enablement.jdt.sdk_*/**"/>
<include
name="eclipse/plugins/org.eclipse.jst.common.fproj.enablement.jdt.sdk_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.jst.common.project.facet.core.source_*.jar"/>
<include
name="eclipse/plugins/org.eclipse.jst.common.project.facet.ui.source_*.jar"/>
</zipfileset>
</zip>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}"/>
<property
name="buildLabel"
value="${buildLabel}"/>
<property
name="archiveName"
value="wtp-common-fproj-${buildLabel}.zip"/>
</ant>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}"/>
<property
name="buildLabel"
value="${buildLabel}"/>
<property
name="archiveName"
value="wtp-common-fproj-sdk-${buildLabel}.zip"/>
</ant>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}"/>
<property
name="buildLabel"
value="${buildLabel}"/>
<property
name="archiveName"
value="wtp-common-fproj-enablement-jdt-${buildLabel}.zip"/>
</ant>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}"/>
<property
name="buildLabel"
value="${buildLabel}"/>
<property
name="archiveName"
value="wtp-common-fproj-enablement-jdt-sdk-${buildLabel}.zip"/>
</ant>
</target>
</project>