blob: 2caf7094d938bf463abbf6668513ce5e17cb89ad [file] [log] [blame]
<project default="Build" basedir=".">
<property file="committer.properties" />
<target name="Build">
<!-- set main builder file name, based on distribution and build type -->
<property name="wtpBuilder"
value="${build.home}/build-node/checkout/${build.distribution}-${buildBranch}-${buildType}/releng.wtpbuilder/build.xml" />
<!-- clean previous build -->
<antcall target="clean" />
<!-- check out fresh set of appropriate files -->
<!-- this is to make sure maps and builders are correct, but also to
make sure the cruisecontrol triggered "diffs" are accurate next
time around -->
<ant antfile="checkout.xml"
target="all"
dir="."
inheritall="false">
<property name="codir"
value="${build.home}/build-node/checkout/${build.distribution}-${buildBranch}-${buildType}" />
<property name="buildType"
value="${buildType}" />
<property name="buildBranch"
value="${buildBranch}" />
<property name="mapVersionTag"
value="${mapVersionTag}" />
</ant>
<!-- build and create preliminary download site files -->
<ant antfile="${wtpBuilder}" target="build" />
<ant antfile="${wtpBuilder}" target="site" />
<!-- upload what we have so far -->
<ant antfile="${wtpBuilder}" target="upload">
<property name="wtpbuilder.upload.properties.file"
value="${basedir}/upload.properties" />
</ant>
<!-- test and create test summary files -->
<ant antfile="${wtpBuilder}" target="test" />
<ant antfile="${wtpBuilder}" target="site" />
<!-- upload what we have so far -->
<ant antfile="${wtpBuilder}" target="upload">
<property name="wtpbuilder.upload.properties.file"
value="${basedir}/upload.properties" />
</ant>
<!-- create what-is-fixed summary files -->
<ant antfile="${wtpBuilder}" target="whatisfixed">
<property name="wtpbuilder.whatisfixed.properties.file"
value="${basedir}/whatisfixed.properties" />
</ant>
<!-- upload final set of results -->
<ant antfile="${wtpBuilder}" target="upload">
<property name="wtpbuilder.upload.properties.file"
value="${basedir}/upload.properties" />
</ant>
</target>
<target name="clean" depends="check.clean" if="doClean">
<delete dir="${build.home}/build-${build.distribution}-${buildBranch}-${buildType}"
failonerror="false" />
<delete dir="${build.home}/test-${build.distribution}-${buildBranch}-${buildType}"
failonerror="false" />
</target>
<target name="check.clean">
<condition property="doClean">
<equals arg1="${build.clean}" arg2="true" />
</condition>
</target>
</project>