blob: 152a60f04944603d2f89820c111c14d0de234aec [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<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="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property
file="${keyCfgFile}"/>
<echo
message="transformedRepoLocation: ${transformedRepoLocation}"/>
<mkdir
dir="${transformedRepoLocation}"/>
<!-- 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"/>
<property
name="dependency.properties"
value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
<!-- 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"/>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jsdt_sdk"/>
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jsdt_tests"/>
<property
name="eclipseBuildFailOnError"
value="false"/>
</ant>
<!-- package -->
<antcall
target="package"/>
<!-- publish now, before tests, etc.
<antcall
target="publishEarly"/>
-->
</target>
<target
name="publishEarly"
depends="init"
if="publisherAvailable">
<!-- publish what we have so far. 'site' prepares things, 'cc_copyArtifacts' copies to artifacts site -->
<ant
antfile="${wtp.builder.home}/build.xml"
target="site"/>
<ant
antfile="${env.RELENG_CONTROL}/cc_copyArtifacts.xml"/>
</target>
<target
name="init">
<available
file="${env.RELENG_CONTROL}/cc_copyArtifacts.xml"
property="publisherAvailable"/>
</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
-->
<!-- nothing to assemble right now -->
</target>
</project>