blob: e85fc78a621a9d71bad135d04dd80c0b0a26b331 [file] [log] [blame]
ndaiba9a5fd2005-09-17 08:21:54 +00001<project default="runBuild">
ndai18663852005-09-15 16:06:41 +00002
ndaib8cedc82005-09-13 18:00:32 +00003 <target name="runBuild">
ndai18663852005-09-15 16:06:41 +00004 <dirname file="${ant.file}" property="scripts.build.dir" />
ndai70d24ab2005-09-15 19:31:45 +00005 <property name="wtp.builder.home" value="${scripts.build.dir}/../.." />
ndai76e32ca2006-07-08 16:45:25 +00006
ndaiba9a5fd2005-09-17 08:21:54 +00007 <antcall target="runEclipseBuild">
8 <param name="wtp.builder.home" value="${wtp.builder.home}" />
9 </antcall>
10 <antcall target="runEclipseBuildStamped">
11 <param name="wtp.builder.home" value="${wtp.builder.home}" />
12 </antcall>
13 </target>
14
15
16
17 <target name="build" depends="init">
ndai76e32ca2006-07-08 16:45:25 +000018
ndaiba9a5fd2005-09-17 08:21:54 +000019 <!--this property required as of Eclipse 3.0 stream builds > 20031126 -->
20 <property name="buildingOSGi" value="true" />
21
david_williams6f3ad5b2006-04-30 19:35:35 +000022 <!-- this generateFeatureVersionSuffix property causes feature
23 suffixes to be calcuated based on their
24 own CVS tag, plus the qualifier of their contained plugins -->
david_williamsd55beb42006-04-27 08:24:41 +000025 <!--
26 https://bugs.eclipse.org/bugs/show_bug.cgi?id=138825
david_williams6f3ad5b2006-04-30 19:35:35 +000027 false for builds intended for 3.1.2, since can generate underscores
28 true for builds instended for 3.2
david_williams7d82e802006-05-23 07:23:58 +000029 -->
ndaia65f8302006-07-09 06:45:13 +000030 <property name="generateFeatureVersionSuffix" value="false" />
david_williamsd55beb42006-04-27 08:24:41 +000031
david_williamsd683b312006-07-29 08:58:57 +000032 <property name="outputUpdateJars" value="false" />
david_williams7d82e802006-05-23 07:23:58 +000033
ndaiba9a5fd2005-09-17 08:21:54 +000034 <!--run the build for the specified component-->
35 <echo message="basedir: ${basedir}" />
36 <echo message="component: ${component}" />
37 <echo message="buildDirectory: ${buildDirectory}" />
38 <echo message="wtp.builder.home: ${wtp.builder.home}" />
39
40 <ant antfile="build.xml" dir="${pde.build.scripts}">
41 <property name="builder" value="${wtp.builder.home}/components/${component}" />
42 <property name="wtp.builder.home" value="${wtp.builder.home}" />
43 <property name="buildBranch" value="${buildBranch}" />
44 <property name="cvsUser" value="${cvsUser}" />
45 <property name="cvsProtocol" value="${cvsProtocol}" />
46 <property name="dependencyTargets" value="${wtp.builder.home}/scripts/dependency/build.xml" />
47 <property name="local.cache.dir" value="${build.home}/${build.local.repository}" />
ndai76e32ca2006-07-08 16:45:25 +000048 <property name="baseLocation" value="${build.home}/${build.current}-${build.distribution}-${buildBranch}-${buildType}/${base.location}" />
49 <property name="buildBranch" value="${buildBranch}" />
ndai86cd9242006-07-28 15:59:10 +000050 <property name="build.pack-all-in-one" value="${build.pack-all-in-one}"/>
ndai76e32ca2006-07-08 16:45:25 +000051 <property name="buildRoot" value="${build.home}/${build.current}-${build.distribution}-${buildBranch}-${buildType}" />
52 <property name="testRoot" value="${build.home}/${build.tests}-${build.distribution}-${buildBranch}-${buildType}" />
ndaiba9a5fd2005-09-17 08:21:54 +000053 <property name="performanceRoot" value="${build.home}/${build.perf.tests}-${buildType}" />
david_williamsb9a690e2006-01-26 00:35:59 +000054 <!-- property name="bootclasspath" value="${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jsse.jar" / -->
ndaiba9a5fd2005-09-17 08:21:54 +000055 </ant>
56 </target>
57
58 <target name="checkBaseBuilder">
ndaib6510d12005-11-20 20:48:01 +000059 <available property="basebuilderLocal" file="${pde.builder.path}" />
ndaiba9a5fd2005-09-17 08:21:54 +000060 </target>
61
62 <target name="getBaseBuilder" depends="checkBaseBuilder" unless="basebuilderLocal">
63 <!-- *** change the repo info -->
david_williams0de9a3c2005-11-06 20:18:28 +000064 <property name="builderCvsRoot" value=":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse" />
david_williamsbd59a3d2005-11-16 09:02:09 +000065 <!-- note: the HEAD version of base builder is not good to use.
66 in some cases, won't run at all, in the best of cases, will simply
67 be unstable, as its the development version -->
68 <property name="eclipse.builder.version" value="r311_vM20050914-1235" />
ndaib6510d12005-11-20 20:48:01 +000069 <mkdir dir="${build.home}/builders/${eclipse.builder.version}" />
70 <cvs cvsRoot="${builderCvsRoot}" package="org.eclipse.releng.basebuilder" dest="${build.home}/builders/${eclipse.builder.version}" tag="${eclipse.builder.version}" />
ndaiba9a5fd2005-09-17 08:21:54 +000071 </target>
72
73
74 <target name="init">
75
ndai76e32ca2006-07-08 16:45:25 +000076
77 <condition property="buildBranch" value="R2.0">
ndaiba9a5fd2005-09-17 08:21:54 +000078 <equals arg1="${mapVersionTag}" arg2="HEAD" />
79 </condition>
ndai76e32ca2006-07-08 16:45:25 +000080 <condition property="buildBranch" value="R0.7">
ndaiba9a5fd2005-09-17 08:21:54 +000081 <equals arg1="${mapVersionTag}" arg2="R0_7_maintenance" />
82 </condition>
ndai76e32ca2006-07-08 16:45:25 +000083 <condition property="buildBranch" value="R1.0">
david_williams6ca56622005-12-30 07:07:14 +000084 <equals arg1="${mapVersionTag}" arg2="R1_0_maintenance" />
85 </condition>
ndai76e32ca2006-07-08 16:45:25 +000086 <condition property="buildBranch" value="R1.5">
87 <equals arg1="${mapVersionTag}" arg2="R1_5_maintenance" />
88 </condition>
89
ndaiba9a5fd2005-09-17 08:21:54 +000090
91 <property file="${wtp.builder.home}/build.properties" />
92 <touch file="${user.home}/.cvspass" />
93
94 <ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
95 <property file="${buildDirectory}/label.properties" />
96
97 <!--fetch the HEAD stream of all projects if build type specified as N-->
98 <condition property="fetchTag" value="HEAD">
99 <equals arg1="${buildType}" arg2="N" />
100 </condition>
101
102 <condition property="tagMaps">
103 <equals arg1="${build.trial}" arg2="false" />
104 </condition>
105 </target>
106
107 <target name="runEclipseBuild" if="buildId">
ndai0950b802006-02-04 12:26:38 +0000108 <java taskname="build-${build.distribution}-${component}" classpath="${pde.builder.path}/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
ndaiba9a5fd2005-09-17 08:21:54 +0000109 <jvmarg value="-Dosgi.ws=${basews}" />
110 <jvmarg value="-Dosgi.os=${baseos}" />
111 <jvmarg value="-Dosgi.arch=${basearch}" />
112 <jvmarg value="-Dbasews=${basews}" />
113 <jvmarg value="-Dbaseos=${baseos}" />
114 <jvmarg value="-Dbasearch=${basearch}" />
115 <jvmarg value="-Dbuild.home=${build.home}" />
116 <jvmarg value="-Dbuild.trial=${build.trial}" />
117 <jvmarg value="-DbuildType=${buildType}" />
118 <jvmarg value="-DbuildId=${buildId}" />
119 <jvmarg value="-DjavacDebugInfo=${javacDebugInfo}" />
120 <jvmarg value="-DmapVersionTag=${mapVersionTag}" />
121 <jvmarg value="-DcvsUser=${cvsUser}" />
122 <jvmarg value="-DcvsProtocol=${cvsProtocol}" />
123 <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
124 <jvmarg value="-Dbuild.distribution=${build.distribution}" />
125 <jvmarg value="-Dcomponent=${component}" />
ndai76e32ca2006-07-08 16:45:25 +0000126 <jvmarg value="-Djava15-home=${java15-home}" />
ndaiba9a5fd2005-09-17 08:21:54 +0000127 <arg value="-application" />
128 <arg value="org.eclipse.ant.core.antRunner" />
129 <arg value="-buildfile" />
130 <arg value="${ant.file}" />
131 <arg value="build" />
132 </java>
133 </target>
david_williams7d82e802006-05-23 07:23:58 +0000134
ndaiba9a5fd2005-09-17 08:21:54 +0000135 <target name="runEclipseBuildStamped" unless="buildId">
ndai0950b802006-02-04 12:26:38 +0000136 <java taskname="build-${build.distribution}-${component}" classpath="${pde.builder.path}/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
ndaib8cedc82005-09-13 18:00:32 +0000137 <jvmarg value="-Dosgi.ws=${basews}" />
138 <jvmarg value="-Dosgi.os=${baseos}" />
139 <jvmarg value="-Dosgi.arch=${basearch}" />
140 <jvmarg value="-Dbasews=${basews}" />
141 <jvmarg value="-Dbaseos=${baseos}" />
142 <jvmarg value="-Dbasearch=${basearch}" />
143 <jvmarg value="-Dbuild.home=${build.home}" />
144 <jvmarg value="-Dbuild.trial=${build.trial}" />
145 <jvmarg value="-DbuildType=${buildType}" />
146 <jvmarg value="-DjavacDebugInfo=${javacDebugInfo}" />
147 <jvmarg value="-DmapVersionTag=${mapVersionTag}" />
ndai88d6a292005-09-13 21:24:24 +0000148 <jvmarg value="-DcvsUser=${cvsUser}" />
149 <jvmarg value="-DcvsProtocol=${cvsProtocol}" />
ndai18663852005-09-15 16:06:41 +0000150 <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
ndaib8cedc82005-09-13 18:00:32 +0000151 <jvmarg value="-Dbuild.distribution=${build.distribution}" />
152 <jvmarg value="-Dcomponent=${component}" />
ndai76e32ca2006-07-08 16:45:25 +0000153 <jvmarg value="-Djava15-home=${java15-home}" />
ndaib8cedc82005-09-13 18:00:32 +0000154 <arg value="-application" />
155 <arg value="org.eclipse.ant.core.antRunner" />
156 <arg value="-buildfile" />
ndai18663852005-09-15 16:06:41 +0000157 <arg value="${ant.file}" />
158 <arg value="build" />
ndaib8cedc82005-09-13 18:00:32 +0000159 </java>
160 </target>
david_williams7d82e802006-05-23 07:23:58 +0000161</project>