Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: editor/tools/features/com.google.dart.tools.deploy.feature_releng/build_rcp.xml

Issue 11343027: Make the editor build callable from tools/build.py (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 This build script will build the Dart RCP and Dart update site. 2 This build script will build the Dart RCP and Dart update site.
3 3
4 This script will setup the PDE build structure and then call into the PDE 4 This script will setup the PDE build structure and then call into the PDE
5 build system. The PDE build system has to run under Eclipse. 5 build system. The PDE build system has to run under Eclipse.
6 --> 6 -->
7 <project name="build_dart" default="build_rcp"> 7 <project name="build_dart" default="build_rcp">
8 8
9 <import file="build-common.xml" /> 9 <import file="build-common.xml" />
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 </fail> 52 </fail>
53 <echoProperty propertyname="build.download.sdk" /> 53 <echoProperty propertyname="build.download.sdk" />
54 </target> 54 </target>
55 55
56 <!-- 56 <!--
57 initializethe build environment by cleaning up the builchrome-botd.tmp direc tory and 57 initializethe build environment by cleaning up the builchrome-botd.tmp direc tory and
58 creating the needed directories 58 creating the needed directories
59 --> 59 -->
60 <target name="init" depends="setOS, buildBotFastFail, readProperties"> 60 <target name="init" depends="setOS, buildBotFastFail, readProperties">
61 <property environment="env" /> 61 <property environment="env" />
62 <echoproperties prefix="env." />
63 62
64 <tstamp> 63 <tstamp>
65 <format property="build.date" pattern="yyyyMMddHHmm" /> 64 <format property="build.date" pattern="yyyyMMddHHmm" />
66 </tstamp> 65 </tstamp>
67 <tstamp> 66 <tstamp>
68 <format property="build.date.ymd" pattern="yyyy-MM-dd" /> 67 <format property="build.date.ymd" pattern="yyyy-MM-dd" />
69 </tstamp> 68 </tstamp>
70 <tstamp> 69 <tstamp>
71 <format property="build.year" pattern="yyyy" /> 70 <format property="build.year" pattern="yyyy" />
72 </tstamp> 71 </tstamp>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 <loadproperties srcFile="${build.source}/../tools/VERSION"> 105 <loadproperties srcFile="${build.source}/../tools/VERSION">
107 <filterchain> 106 <filterchain>
108 <replaceregex pattern=" " replace="="/> 107 <replaceregex pattern=" " replace="="/>
109 </filterchain> 108 </filterchain>
110 </loadproperties> 109 </loadproperties>
111 <property name="dart.version" value="${MAJOR}.${MINOR}.${BUILD}" /> 110 <property name="dart.version" value="${MAJOR}.${MINOR}.${BUILD}" />
112 111
113 <condition property="build.revision" value="${env.BUILDBOT_GOT_REVISION} "> 112 <condition property="build.revision" value="${env.BUILDBOT_GOT_REVISION} ">
114 <isset property="env.BUILDBOT_GOT_REVISION" /> 113 <isset property="env.BUILDBOT_GOT_REVISION" />
115 </condition> 114 </condition>
116 <property name="build.revision" value="unknown" /> 115 <property name="build.revision" value="000" />
117 <property name="dart.version_revision" value="${dart.version}_${build.re vision}" /> 116 <property name="dart.version_revision" value="${dart.version}_${build.re vision}" />
118 <!-- TODO(devoncarew): we should pull this info from tools/version.dart --> 117 <!-- TODO(devoncarew): we should pull this info from tools/version.dart -->
119 <property name="dart.version.full" value="${MAJOR}.${MINOR}.${BUILD}.${P ATCH}_r${build.revision}" /> 118 <property name="dart.version.full" value="${MAJOR}.${MINOR}.${BUILD}.${P ATCH}_r${build.revision}" />
120 119
121 <dirname file="${build.source}" property="build.source.root"/> 120 <dirname file="${build.source}" property="build.source.root"/>
122 121
123 <property name="build.thirdparty" location="${build.source.root}/third_p arty" /> 122 <property name="build.thirdparty" location="${build.source.root}/third_p arty" />
124 123
125 <property name="build.stage.scripts" location="${build.stage}/scripts" / > 124 <property name="build.stage.scripts" location="${build.stage}/scripts" / >
126 <echoproperties prefix="java." /> 125 <!-- echoproperties prefix="java." / -->
127 <echoproperties prefix="build." /> 126 <!-- echoproperties prefix="build." / -->
128 <property name="build.runtime.abs" location="${build.runtime}" /> 127 <property name="build.runtime.abs" location="${build.runtime}" />
129 <property name="build.target.abs" location="${build.target}" /> 128 <property name="build.target.abs" location="${build.target}" />
130 <property name="build.stage.abs" location="${build.stage}" /> 129 <property name="build.stage.abs" location="${build.stage}" />
131 <property name="build.out.property.file" 130 <property name="build.out.property.file"
132 value="${java.io.tmpdir}/dart-build.properties" /> 131 value="${java.io.tmpdir}/dart-build.properties" />
133 <echoproperties prefix="build." destfile="${build.out.property.file}"/> 132 <echoproperties prefix="build." destfile="${build.out.property.file}"/>
134 <echoProperty propertyName="eclipse-sdk.3.8.url" /> 133 <echoProperty propertyName="eclipse-sdk.3.8.url" />
135 <echoProperty propertyName="eclipse-sdk.3.8.linux.gtk.x86.zip" /> 134 <echoProperty propertyName="eclipse-sdk.3.8.linux.gtk.x86.zip" />
136 <echoProperty propertyName="eclipse-sdk.3.7.url" /> 135 <echoProperty propertyName="eclipse-sdk.3.7.url" />
137 <echoProperty propertyName="eclipse-sdk.3.7.linux.gtk.x86.zip" /> 136 <echoProperty propertyName="eclipse-sdk.3.7.linux.gtk.x86.zip" />
138 <!-- 137 <!--
139 cleanup build directories 138 cleanup build directories
140 --> 139 -->
141 <delete failonerror="false" includeemptydirs="true"> 140 <delete failonerror="false" includeemptydirs="true">
142 <fileset dir="${build.tmp}" /> 141 <fileset dir="${build.tmp}" />
143 <!-- fileset dir="${build.out}" / --> 142 <!-- fileset dir="${build.out}" / -->
144 </delete> 143 </delete>
145 <!-- 144 <!--
146 create the build structure 145 create the build structure
147 --> 146 -->
148 <mkdir dir="${build.downloads}" /> 147 <mkdir dir="${build.downloads}" />
149 148
150 <mkdir dir="${build.runtime}" /> 149 <mkdir dir="${build.runtime}" />
151 <mkdir dir="${build.target}" /> 150 <mkdir dir="${build.target}" />
152 <mkdir dir="${build.stage.plugins}" /> 151 <mkdir dir="${build.stage.plugins}" />
153 <mkdir dir="${build.stage.features}" /> 152 <mkdir dir="${build.stage.features}" />
154 <mkdir dir="${build.out}" /> 153 <mkdir dir="${build.out}" />
154
155 <property name="build.dart.sdk" value="true"/>
156
155 <echoProperty propertyname="build.revision" /> 157 <echoProperty propertyname="build.revision" />
156 <echoProperty propertyname="build.builder" /> 158 <echoProperty propertyname="build.builder" />
157 <echoProperty propertyname="build.root" /> 159 <echoProperty propertyname="build.root" />
158 <echoProperty propertyname="build.out" /> 160 <echoProperty propertyname="build.out" />
159 <echoProperty propertyname="build.source" /> 161 <echoProperty propertyname="build.source" />
160 <echoProperty propertyname="build.source.root"/> 162 <echoProperty propertyname="build.source.root"/>
161 <echoProperty propertyname="build.out.property.file" /> 163 <echoProperty propertyname="build.out.property.file" />
162 <echoProperty propertyname="build.os" /> 164 <echoProperty propertyname="build.os" />
163 <echoProperty propertyname="build.dart.sdk.zip" /> 165 <echoProperty propertyname="build.dart.sdk.zip" />
164 <echoProperty propertyname="build.local.build" /> 166 <echoProperty propertyname="build.download.sdk" />
165 </target> 167 </target>
166 168
167 <!-- - - - - - - - - - - - - - - - - - 169 <!-- - - - - - - - - - - - - - - - - -
168 target: buildSamples 170 target: buildSamples
169 Copy sample Dart libraries from the SVN tree into a new "samples" dire ctory 171 Copy sample Dart libraries from the SVN tree into a new "samples" dire ctory
170 172
171 ant properties required 173 ant properties required
172 build.source.root = the SVN root directory 174 build.source.root = the SVN root directory
173 build.stage.include.dir = required iff samples.out.dir is not already defined 175 build.stage.include.dir = required iff samples.out.dir is not already defined
174 176
175 ant properties set 177 ant properties set
176 samples.out.dir = the destination "samples" directory, created by thi s target 178 samples.out.dir = the destination "samples" directory, created by thi s target
177 179
178 - - - - - - - - - - - - - - - - - --> 180 - - - - - - - - - - - - - - - - - -->
179 <target name="buildSamples"> 181 <target name="buildSamples">
180 <!-- create the samples directory --> 182 <!-- create the samples directory -->
181 <property name="samples.out.dir" value="${build.stage.include.dir}/sampl es" /> 183 <property name="samples.out.dir" value="${build.stage.include.dir}/sampl es" />
182 184
183 » <!-- delete old samples --> 185 <!-- delete old samples -->
184 » <delete dir="${samples.out.dir}"/> 186 <delete dir="${samples.out.dir}"/>
185 » 187
186 <!-- copy specific samples --> 188 <!-- copy specific samples -->
187 <copy todir="${samples.out.dir}"> 189 <copy todir="${samples.out.dir}">
188 <fileset dir="${build.source.root}/samples"> 190 <fileset dir="${build.source.root}/samples">
189 <include name="clock/**"/> 191 <include name="clock/**"/>
190 192
191 <include name="solar/**"/> 193 <include name="solar/**"/>
192 194
193 <include name="solar3d/**"/> 195 <include name="solar3d/**"/>
194 196
195 <include name="sunflower/**"/> 197 <include name="sunflower/**"/>
(...skipping 27 matching lines...) Expand all
223 </patternset> 225 </patternset>
224 <cutdirsmapper dirs="1"/> 226 <cutdirsmapper dirs="1"/>
225 </unzip> 227 </unzip>
226 228
227 <delete file="${html5.archive}"/ --> 229 <delete file="${html5.archive}"/ -->
228 230
229 <!-- copy the dart.js file into the samples directory --> 231 <!-- copy the dart.js file into the samples directory -->
230 <copy todir="${samples.out.dir}" file="${build.source.root}/client/dart. js"/> 232 <copy todir="${samples.out.dir}" file="${build.source.root}/client/dart. js"/>
231 </target> 233 </target>
232 234
233 <!-- - - - - - - - - - - - - - - - - - 235 <!-- - - - - - - - - - - - - - - - - - -
234 target: getSdk 236 target: installSdk
237 Install the sdk zip unless a path to an SDK exists - build.dart.sdk.
235 - - - - - - - - - - - - - - - - - --> 238 - - - - - - - - - - - - - - - - - -->
236 <target name="getSdk" if="build.download.sdk" depends="setOS"> 239 <target name="installSdk" unless="build.dart.sdk" depends="setOS">
240 <echoProperty propertyname="build.dart.sdk"/>
241
237 <get src="http://gsdview.appspot.com/dart-editor-archive-continuous/late st/dartsdk-${osfamily}-32.zip" 242 <get src="http://gsdview.appspot.com/dart-editor-archive-continuous/late st/dartsdk-${osfamily}-32.zip"
238 dest="${build.dart.sdk.zip}" 243 dest="${build.dart.sdk.zip}"
239 usetimestamp="true" /> 244 usetimestamp="true" />
240 <delete dir="${build.stage.include.dir}/dart-sdk"/> 245
241 </target>
242
243 <!-- - - - - - - - - - - - - - - - - -
244 target: installSdkInWindows
245 Use the standard Ant unzip task to install the sdk
246 - - - - - - - - - - - - - - - - - -->
247 <target name="installSdkInWindows" if="installSdkWindows" depends="getSdk">
248 <unzip src="${build.dart.sdk.zip}" dest="${build.stage.include.dir}" />
249 </target>
250
251 <!-- - - - - - - - - - - - - - - - - -
252 target: installSdkInNonWindows
253 The standard Ant unzip task destroys execute permissions in the sdk
254 so use the command line unzip instead
255 - - - - - - - - - - - - - - - - - -->
256 <target name="installSdkInNonWindows" if="installSdkNotWindows" depends="get Sdk">
257 <echo message="unzipping ${build.dart.sdk.zip} to ${build.stage.include. dir}"/> 246 <echo message="unzipping ${build.dart.sdk.zip} to ${build.stage.include. dir}"/>
258 <mkdir dir="${build.stage.include.dir}" /> 247 <mkdir dir="${build.stage.include.dir}" />
248 <delete dir="${build.stage.include.dir}/dart-sdk"/>
259 <exec executable="unzip" dir="${build.stage.include.dir}"> 249 <exec executable="unzip" dir="${build.stage.include.dir}">
260 <arg value="-q"/> 250 <arg value="-q"/>
261 <arg value="${build.dart.sdk.zip}"/> 251 <arg value="${build.dart.sdk.zip}"/>
262 </exec> 252 </exec>
263 </target> 253 </target>
264
265 <!-- - - - - - - - - - - - - - - - - - -
266 target: installSdk
267 Install the sdk zip if build.os is set
268 - - - - - - - - - - - - - - - - - -->
269 <target name="installSdk" depends="installSdkInNonWindows, installSdkInWindo ws">
270 </target>
271 254
272 <!-- - - - - - - - - - - - - - - - - - 255 <!-- - - - - - - - - - - - - - - - - -
273 target: setupDevWorkspace 256 target: setupDevWorkspace
274 - - - - - - - - - - - - - - - - - --> 257 - - - - - - - - - - - - - - - - - -->
275 <target name="setupDevWorkspace" 258 <target name="setupDevWorkspace"
276 depends="initDevWorkspace, buildSamples, installSdk"> 259 depends="initDevWorkspace, buildSamples, installSdk">
277 </target> 260 </target>
278 261
279 <!-- - - - - - - - - - - - - - - - - - 262 <!-- - - - - - - - - - - - - - - - - -
280 target: initDevWorkspace 263 target: initDevWorkspace
(...skipping 27 matching lines...) Expand all
308 <os family="unix"/> 291 <os family="unix"/>
309 </condition> 292 </condition>
310 293
311 <property name="data.location" location="./build-settings" /> 294 <property name="data.location" location="./build-settings" />
312 <property name="user.os.property.file" location="${data.location}/${user .name}.${build.os}.properties" /> 295 <property name="user.os.property.file" location="${data.location}/${user .name}.${build.os}.properties" />
313 <echo message="reading ${user.os.property.file}" /> 296 <echo message="reading ${user.os.property.file}" />
314 <property file="${user.os.property.file}" /> 297 <property file="${user.os.property.file}" />
315 <property name="user.property.file" location="${data.location}/${user.na me}.properties" /> 298 <property name="user.property.file" location="${data.location}/${user.na me}.properties" />
316 <echo message="reading ${user.property.file}" /> 299 <echo message="reading ${user.property.file}" />
317 <property file="${user.property.file}" /> 300 <property file="${user.property.file}" />
301
302 <!-- The path to dart/editor/ -->
303 <property name="build.source" location="../../.." />
304 <dirname property="build.source.root" file="${build.source}" />
318 305
319 <fail unless="build.source">* 306 <echoProperty propertyname="build.source" />
320 ********************************** 307 <echoProperty propertyname="build.source.root" />
321 Define the "build.source" property to point to your dart/eclipse SVN directory
322 **********************************
323 </fail>
324 <dirname file="${build.source}" property="build.source.root"/>
325 </target> 308 </target>
326 309
327 <!-- - - - - - - - - - - - - - - - - - 310 <!-- - - - - - - - - - - - - - - - - -
328 target: setupRuntimeEclipse 311 target: setupRuntimeEclipse
329 - - - - - - - - - - - - - - - - - --> 312 - - - - - - - - - - - - - - - - - -->
330 <target name="setupRuntimeEclipse"> 313 <target name="setupRuntimeEclipse">
331 <setupEclipse location="${build.runtime}" version="${build.runtime.eclip se.version}" 314 <setupEclipse location="${build.runtime}" version="${build.runtime.eclip se.version}"
332 arch="${build.eclipse.arch}" os.ws="${build.eclipse.os.ws} " /> 315 arch="${build.eclipse.arch}" os.ws="${build.eclipse.os.ws} " />
333 <fileset dir="${build.runtime}/eclipse/plugins" id="launcherFs" > 316 <fileset dir="${build.runtime}/eclipse/plugins" id="launcherFs" >
334 <include name="*launcher_*.jar" /> 317 <include name="*launcher_*.jar" />
335 </fileset> 318 </fileset>
336 <pathconvert property="eclipse.runtime.launcher.jar" refid="launcherFs" /> 319 <pathconvert property="eclipse.runtime.launcher.jar" refid="launcherFs" />
337 </target> 320 </target>
338 321
339 <!-- 322 <!--
340 copy the code from the svn structure to the PDE structure and get rid of the linked resources 323 copy the code from the svn structure to the PDE structure and get rid of the linked resources
341 --> 324 -->
342 <target name="setupBuild" depends="init, installSdk, setupRuntimeEclipse, bu ildSamples" > 325 <target name="setupBuild" depends="init, installSdk, setupRuntimeEclipse, bu ildSamples" >
343 <setupTargetEclipse location="${build.target}" eclipse="${build.target.e clipse.version}" 326 <setupTargetEclipse location="${build.target}" eclipse="${build.target.e clipse.version}"
344 arch="${build.eclipse.arch}" /> 327 arch="${build.eclipse.arch}" />
345 <!-- installDirIntoTargetEclipse updatesite="${build.source.root}/third_ party/chromesdk/0.3.0"
346 ius="org.chromium.sdk.feature.group"
347 uniqueId="chrome"/ -->
348 <!-- installDirIntoTargetEclipse updatesite="${build.source.root}/third_ party/usageprofiler"
349 ius="com.google.gdt.eclipse.usageprofiler.f eature.feature.group"
350 uniqueId="profiler"/-->
351 328
352 <property name="eclipse.runtime.dir" 329 <property name="eclipse.runtime.dir"
353 value="${build.runtime}/eclipse" /> 330 value="${build.runtime}/eclipse" />
354 <mkdir dir="${build.stage.plugins}" /> 331 <mkdir dir="${build.stage.plugins}" />
355 <mkdir dir="${build.stage.features}" /> 332 <mkdir dir="${build.stage.features}" />
356 333
357 <copy todir="${build.stage.plugins}"> 334 <copy todir="${build.stage.plugins}">
358 <fileset dir="${build.source}/tools/plugins"> 335 <fileset dir="${build.source}/tools/plugins">
359 <exclude name="*_test/**" /> 336 <exclude name="*_test/**" />
360 <exclude name="**/bin/**" /> 337 <exclude name="**/bin/**" />
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 }</echo> 458 }</echo>
482 </target> 459 </target>
483 460
484 <!-- - - - - - - - - - - - - - - - - - 461 <!-- - - - - - - - - - - - - - - - - -
485 target: doDeploy_rcp 462 target: doDeploy_rcp
486 - - - - - - - - - - - - - - - - - --> 463 - - - - - - - - - - - - - - - - - -->
487 <target name="doDeploy_rcp" depends="init, setupBuild, doBuild_rcp, package_ rcp"> 464 <target name="doDeploy_rcp" depends="init, setupBuild, doBuild_rcp, package_ rcp">
488 </target> 465 </target>
489 466
490 </project> 467 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698