blob: 47f118e5b2677c86ded3b3b9ad1731ac649b8201 [file] [log] [blame]
ndaia1ebdb92005-08-09 20:23:24 +00001<project default="Build">
2
ndai037487f2005-07-09 20:15:53 +00003 <property file="trigger.properties" />
ndaia5b27662005-07-09 19:41:27 +00004
ndaia1ebdb92005-08-09 20:23:24 +00005 <target name="Build">
6 <property name="buildTarget" value="all" />
7 <property name="removeBuildDir" value="true" />
8 <antcall target="startBuild">
ndai037487f2005-07-09 20:15:53 +00009 </antcall>
10 </target>
ndaia5b27662005-07-09 19:41:27 +000011
ndaia1ebdb92005-08-09 20:23:24 +000012 <target name="Repeat">
13 <property name="buildTarget" value="all" />
14 <antcall target="startBuild">
ndaibccd41f2005-08-08 19:15:03 +000015 </antcall>
16 </target>
17
ndaia1ebdb92005-08-09 20:23:24 +000018 <target name="Test">
19 <delete dir="${build.home}/test-${build.component}-${buildType}" failonerror="false" />
20 <property name="buildTarget" value="test" />
21 <antcall target="startBuild">
ndai037487f2005-07-09 20:15:53 +000022 </antcall>
23 </target>
ndaia5b27662005-07-09 19:41:27 +000024
ndaia1ebdb92005-08-09 20:23:24 +000025 <target name="Publish">
26 <property name="buildTarget" value="justPublish" />
27 <antcall target="startBuild">
ndai037487f2005-07-09 20:15:53 +000028 </antcall>
29 </target>
ndaia5b27662005-07-09 19:41:27 +000030
ndaia1ebdb92005-08-09 20:23:24 +000031 <target name="Push">
32 <property name="buildTarget" value="justPush" />
33 <antcall target="startBuild">
34 </antcall>
35 </target>
36
37 <target name="startBuild" depends="clean">
ndai037487f2005-07-09 20:15:53 +000038 <antcall target="clean" />
ndai2d2d1532005-08-10 06:22:28 +000039 <echo message="Component is: ${build.component}" />
40 <echo message="Build type is: ${buildType}" />
41 <echo message="Branch : ${mapVersionTag}" />
42 <echo message="Trial : ${build.trial}" />
ndai0c4b4882005-08-10 06:27:54 +000043 <echo message="ftpRemoteDirectory : ${ftpRemoteDirectory}" />
ndaia1ebdb92005-08-09 20:23:24 +000044
ndai037487f2005-07-09 20:15:53 +000045 <ant antfile="checkout.xml" target="all" dir="." inheritall="false">
ndai51678f32006-01-04 11:47:53 +000046 <property name="codir" value="${build.home}/build-node/checkout/${build.component}-${buildType}" />
ndai037487f2005-07-09 20:15:53 +000047 <property name="buildType" value="${buildType}" />
ndai727821a2005-08-08 20:22:12 +000048 <property name="mapVersionTag" value="${mapVersionTag}" />
ndai037487f2005-07-09 20:15:53 +000049 </ant>
ndaia5b27662005-07-09 19:41:27 +000050
ndai51678f32006-01-04 11:47:53 +000051 <ant antfile="cruise.xml" target="${buildTarget}" dir="${build.home}/build-node/checkout/${build.component}-${buildType}/releng.builder/scripts" inheritall="false">
ndai037487f2005-07-09 20:15:53 +000052 <!-- PUBLISH TO eclipse.org -->
ndaia5b27662005-07-09 19:41:27 +000053
ndai037487f2005-07-09 20:15:53 +000054 <property name="baseos" value="${baseos}" />
55 <property name="basews" value="${basews}" />
56 <property name="basearch" value="${basearch}" />
57 <property name="build.home" value="${build.home}" />
ndaicbf7ef32005-07-16 05:47:34 +000058 <property name="build.trial" value="${build.trial}" />
ndaia1ebdb92005-08-09 20:23:24 +000059 <property name="build.component" value="${build.component}" />
ndaia5b27662005-07-09 19:41:27 +000060
ndaibccd41f2005-08-08 19:15:03 +000061 <property name="mapVersionTag" value="${mapVersionTag}" />
ndai037487f2005-07-09 20:15:53 +000062 <property name="buildType" value="${buildType}" />
63 <property name="ftpUser" value="${ftpUser}" />
64 <property name="ftpPassword" value="${ftpPassword}" />
65 <property name="ftpServer" value="${ftpServer}" />
ndai0c4b4882005-08-10 06:27:54 +000066 <property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />
ndaia5b27662005-07-09 19:41:27 +000067
ndai037487f2005-07-09 20:15:53 +000068 </ant>
69 </target>
ndaia5b27662005-07-09 19:41:27 +000070
ndaia5b27662005-07-09 19:41:27 +000071
72
ndai037487f2005-07-09 20:15:53 +000073 <target name="Driver">
74 <ant antfile="checkout.xml" target="all" dir="." inheritall="false">
ndai2beb4272006-01-04 19:25:23 +000075 <property name="build.home" value="${build.home}" />
ndai51678f32006-01-04 11:47:53 +000076 <property name="codir" value="${build.home}/build-node/checkout/wtp-driver" />
ndai037487f2005-07-09 20:15:53 +000077 <property name="buildType" value="I" />
ndai727821a2005-08-08 20:22:12 +000078 <property name="mapVersionTag" value="${mapVersionTag}" />
ndai037487f2005-07-09 20:15:53 +000079 </ant>
ndai51678f32006-01-04 11:47:53 +000080 <ant antfile="drivers.xml" target="all" dir="${build.home}/build-node/checkout/wtp-driver/releng.builder/tools/cruise" inheritall="false">
ndaibccd41f2005-08-08 19:15:03 +000081 </ant>
82 </target>
ndaia1ebdb92005-08-09 20:23:24 +000083
ndaibccd41f2005-08-08 19:15:03 +000084 <target name="docs">
ndaia1ebdb92005-08-09 20:23:24 +000085 <property name="build.component" value="docs" />
lmandel9b7f3902005-08-10 04:58:36 +000086 <property name="buildTarget" value="buildDoc" />
ndaia1ebdb92005-08-09 20:23:24 +000087 <antcall target="Build">
ndai0c4b4882005-08-10 06:27:54 +000088 <param name="ftpRemoteDirectory" value="${ftpDocsRemoteDirectory}"/>
ndaia1ebdb92005-08-09 20:23:24 +000089 </antcall>
ndai037487f2005-07-09 20:15:53 +000090 </target>
ndaia5b27662005-07-09 19:41:27 +000091
92
ndaia1ebdb92005-08-09 20:23:24 +000093 <target name="clean" if="removeBuildDir">
94 <delete dir="${build.home}/build-${build.component}-${buildType}" failonerror="false" />
95 <delete dir="${build.home}/test-${build.component}-${buildType}" failonerror="false" />
ndai51678f32006-01-04 11:47:53 +000096 <delete dir="${build.home}/build-node/checkout/${build.component}-${buildType}/build/test-results" failonerror="false" />
ndai037487f2005-07-09 20:15:53 +000097 <delete dir="${build.home}/workspace" failonerror="false" />
98 </target>
ndaia5b27662005-07-09 19:41:27 +000099
ndai037487f2005-07-09 20:15:53 +0000100</project>