blob: bbbb61de14fc148ecaa51eb14c889d1e536711de [file] [log] [blame]
<project default="Build">
<property file="trigger.properties" />
<target name="Build">
<property name="buildTarget" value="all" />
<property name="removeBuildDir" value="true" />
<antcall target="startBuild">
</antcall>
</target>
<target name="Repeat">
<property name="buildTarget" value="all" />
<antcall target="startBuild">
</antcall>
</target>
<target name="Test">
<delete dir="${build.home}/test-${build.component}-${buildType}" failonerror="false" />
<property name="buildTarget" value="test" />
<antcall target="startBuild">
</antcall>
</target>
<target name="Publish">
<property name="buildTarget" value="justPublish" />
<antcall target="startBuild">
</antcall>
</target>
<target name="Push">
<property name="buildTarget" value="justPush" />
<antcall target="startBuild">
</antcall>
</target>
<target name="startBuild" depends="clean">
<antcall target="clean" />
<echo message="Component is: ${build.component}" />
<echo message="Build type is: ${buildType}" />
<echo message="Branch : ${mapVersionTag}" />
<echo message="Trial : ${build.trial}" />
<echo message="ftpRemoteDirectory : ${ftpRemoteDirectory}" />
<ant antfile="checkout.xml" target="all" dir="." inheritall="false">
<property name="codir" value="${build.home}/build-node/checkout/${build.component}-${buildType}" />
<property name="buildType" value="${buildType}" />
<property name="mapVersionTag" value="${mapVersionTag}" />
</ant>
<!-- TODO: this appears obsolete? And should be removed? -->
<ant antfile="cruise.xml" target="${buildTarget}" dir="${build.home}/build-node/checkout/${build.component}-${buildType}/releng.builder/scripts" inheritall="false">
<!-- PUBLISH TO eclipse.org -->
<property name="baseos" value="${baseos}" />
<property name="basews" value="${basews}" />
<property name="basearch" value="${basearch}" />
<property name="build.home" value="${build.home}" />
<property name="build.trial" value="${build.trial}" />
<property name="build.component" value="${build.component}" />
<property name="mapVersionTag" value="${mapVersionTag}" />
<property name="buildType" value="${buildType}" />
<property name="ftpUser" value="${ftpUser}" />
<property name="ftpPassword" value="${ftpPassword}" />
<property name="ftpServer" value="${ftpServer}" />
<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />
</ant>
</target>
<target name="Driver">
<ant antfile="checkout.xml" target="all" dir="." inheritall="false">
<property name="build.home" value="${build.home}" />
<property name="codir" value="${build.home}/build-node/checkout/wtp-driver" />
<property name="buildType" value="I" />
<property name="mapVersionTag" value="${mapVersionTag}" />
</ant>
<ant antfile="drivers.xml" target="all" dir="${build.home}/build-node/checkout/wtp-driver/releng.builder/tools/cruise" inheritall="false">
</ant>
</target>
<target name="docs">
<property name="build.component" value="docs" />
<property name="buildTarget" value="buildDoc" />
<antcall target="Build">
<param name="ftpRemoteDirectory" value="${ftpDocsRemoteDirectory}"/>
</antcall>
</target>
<target name="clean" if="removeBuildDir">
<delete dir="${build.home}/build-${build.component}-${buildType}" failonerror="false" />
<delete dir="${build.home}/test-${build.component}-${buildType}" failonerror="false" />
<delete dir="${build.home}/build-node/checkout/${build.component}-${buildType}/build/test-results" failonerror="false" />
<delete dir="${build.home}/workspace" failonerror="false" />
</target>
</project>