blob: e729ff5343cf617366392fefd23a2c3aec304a8c [file] [log] [blame]
<project default="Build" basedir=".">
<!-- Note to be cross-platform, "environment variables" are only appropriate for
some variables, e.g. ones we set, since properties are case sensitive, even if
the environment variables on your operating system are not, e.g. it will
be ${env.Path} not ${env.PATH} on Windows -->
<property environment="env" />
<property file="committer.properties" />
<target name="Build">
<!-- set main builder file name, based on distribution and build type -->
<property name="wtpBuilder"
value="${env.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="${env.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">
<property name="baseos" value="${baseos}" />
<property name="basews" value="${basews}" />
<property name="basearch" value="${basearch}" />
</ant>
<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>
</target>
<target name="clean" depends="check.clean" if="doClean">
<delete dir="${env.BUILD_HOME}/build-${build.distribution}-${buildBranch}-${buildType}"
failonerror="false" />
<delete dir="${env.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>