blob: e701f694199c573ee1eb4d15142406708fa6417e [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" />
<target
name="build"
depends="init"
if="build_distro_target_exists">
<property
name="buildfile"
value="${distributionCoreName}.build/build.xml" />
<echo message="buildfile: ${buildfile}" />
<ant antfile="${buildfile}">
<property
name="wtp.builder.home"
value="${wtp.builder.home}" />
<property
name="buildBranch"
value="${buildBranch}" />
<property
name="build.pack-all-in-one"
value="${build.pack-all-in-one}" />
<property
name="J2SE-1.5"
value="${J2SE-1.5}" />
<property
name="J2SE-1.4"
value="${J2SE-1.4}" />
</ant>
</target>
<target
name="site"
depends="init"
if="site_distro_target_exists">
<ant antfile="${distributionCoreName}.site/build.xml">
<property
name="wtp.builder.home"
value="${wtp.builder.home}" />
<property
name="buildBranch"
value="${buildBranch}" />
<property
name="build.pack-all-in-one"
value="${build.pack-all-in-one}" />
</ant>
</target>
<target
name="test"
depends="init"
if="tests_distro_target_exists">
<ant antfile="${distributionCoreName}.tests/build.xml">
<property
name="wtp.builder.home"
value="${wtp.builder.home}" />
<property
name="buildBranch"
value="${buildBranch}" />
<property
name="build.pack-all-in-one"
value="${build.pack-all-in-one}" />
<property
name="testRoot"
value="${env.BUILD_HOME}/${build.tests}-${build.distribution}-${buildBranch}-${buildType}" />
<property
name="dependencyTargets"
value="${wtp.builder.home}/scripts/dependency/build.xml" />
<property
name="local.cache.dir"
value="${env.BUILD_HOME}/${build.local.repository}" />
</ant>
</target>
<target
name="upload"
depends="init"
if="upload_distro_target_exists">
<ant antfile="${distributionCoreName}.upload/build.xml">
<property
name="wtp.builder.home"
value="${wtp.builder.home}" />
<property
name="buildBranch"
value="${buildBranch}" />
<property
name="build.pack-all-in-one"
value="${build.pack-all-in-one}" />
</ant>
</target>
<target
name="whatisfixed"
depends="init"
if="whatisfixed_distro_target_exists">
<ant antfile="${distributionCoreName}.whatisfixed/build.xml">
<property
name="wtp.builder.home"
value="${wtp.builder.home}" />
<property
name="buildBranch"
value="${buildBranch}" />
<property
name="build.pack-all-in-one"
value="${build.pack-all-in-one}" />
</ant>
</target>
<target name="init">
<dirname
file="${ant.file}"
property="wtp.builder.home" />
<condition
property="buildBranch"
value="R2.0">
<equals
arg1="${mapVersionTag}"
arg2="HEAD" />
</condition>
<condition
property="buildBranch"
value="R0.7">
<equals
arg1="${mapVersionTag}"
arg2="R0_7_maintenance" />
</condition>
<condition
property="buildBranch"
value="R1.0">
<equals
arg1="${mapVersionTag}"
arg2="R1_0_maintenance" />
</condition>
<condition
property="buildBranch"
value="R1.5">
<equals
arg1="${mapVersionTag}"
arg2="R1_5_maintenance" />
</condition>
<touch file="${user.home}/.cvspass" />
<property file="${wtp.builder.home}/build.properties" />
<touch file="${user.home}/.cvspass" />
<ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
<property file="${buildDirectory}/label.properties" />
<property
name="distributionCoreName"
value="${wtp.builder.home}/distribution/${build.distribution}" />
<available
file="${distributionCoreName}.build/build.xml"
type="file"
property="build_distro_target_exists" />
<available
file="${distributionCoreName}.site/build.xml"
type="file"
property="site_distro_target_exists" />
<available
file="${distributionCoreName}.tests/build.xml"
type="file"
property="tests_distro_target_exists" />
<available
file="${distributionCoreName}.upload/build.xml"
type="file"
property="upload_distro_target_exists" />
<available
file="${distributionCoreName}.whatisfixed/build.xml"
type="file"
property="whatisfixed_distro_target_exists" />
<!--fetch the HEAD stream of all projects if build type specified as N-->
<condition
property="fetchTag"
value="HEAD">
<equals
arg1="${buildType}"
arg2="N" />
</condition>
<condition property="tagMaps">
<equals
arg1="${build.trial}"
arg2="false" />
</condition>
</target>
</project>