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

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 8 years, 1 month 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" />
(...skipping 16 matching lines...) Expand all
154 <mkdir dir="${build.out}" /> 153 <mkdir dir="${build.out}" />
155 <echoProperty propertyname="build.revision" /> 154 <echoProperty propertyname="build.revision" />
156 <echoProperty propertyname="build.builder" /> 155 <echoProperty propertyname="build.builder" />
157 <echoProperty propertyname="build.root" /> 156 <echoProperty propertyname="build.root" />
158 <echoProperty propertyname="build.out" /> 157 <echoProperty propertyname="build.out" />
159 <echoProperty propertyname="build.source" /> 158 <echoProperty propertyname="build.source" />
160 <echoProperty propertyname="build.source.root"/> 159 <echoProperty propertyname="build.source.root"/>
161 <echoProperty propertyname="build.out.property.file" /> 160 <echoProperty propertyname="build.out.property.file" />
162 <echoProperty propertyname="build.os" /> 161 <echoProperty propertyname="build.os" />
163 <echoProperty propertyname="build.dart.sdk.zip" /> 162 <echoProperty propertyname="build.dart.sdk.zip" />
164 <echoProperty propertyname="build.local.build" /> 163 <echoProperty propertyname="build.download.sdk" />
165 </target> 164 </target>
166 165
167 <!-- - - - - - - - - - - - - - - - - - 166 <!-- - - - - - - - - - - - - - - - - -
168 target: buildSamples 167 target: buildSamples
169 Copy sample Dart libraries from the SVN tree into a new "samples" dire ctory 168 Copy sample Dart libraries from the SVN tree into a new "samples" dire ctory
170 169
171 ant properties required 170 ant properties required
172 build.source.root = the SVN root directory 171 build.source.root = the SVN root directory
173 build.stage.include.dir = required iff samples.out.dir is not already defined 172 build.stage.include.dir = required iff samples.out.dir is not already defined
174 173
175 ant properties set 174 ant properties set
176 samples.out.dir = the destination "samples" directory, created by thi s target 175 samples.out.dir = the destination "samples" directory, created by thi s target
177 176
178 - - - - - - - - - - - - - - - - - --> 177 - - - - - - - - - - - - - - - - - -->
179 <target name="buildSamples"> 178 <target name="buildSamples">
180 <!-- create the samples directory --> 179 <!-- create the samples directory -->
181 <property name="samples.out.dir" value="${build.stage.include.dir}/sampl es" /> 180 <property name="samples.out.dir" value="${build.stage.include.dir}/sampl es" />
182 181
183 » <!-- delete old samples --> 182 <!-- delete old samples -->
184 » <delete dir="${samples.out.dir}"/> 183 <!-- delete dir="${samples.out.dir}"/ -->
185 184
186 <!-- copy specific samples --> 185 <!-- copy specific samples -->
187 <copy todir="${samples.out.dir}"> 186 <copy todir="${samples.out.dir}">
188 <fileset dir="${build.source.root}/samples"> 187 <fileset dir="${build.source.root}/samples">
189 <include name="clock/**"/> 188 <include name="clock/**"/>
190 189
191 <include name="solar/**"/> 190 <include name="solar/**"/>
192 191
193 <include name="sunflower/**"/> 192 <include name="sunflower/**"/>
194 193
(...skipping 23 matching lines...) Expand all
218 </patternset> 217 </patternset>
219 <cutdirsmapper dirs="1"/> 218 <cutdirsmapper dirs="1"/>
220 </unzip> 219 </unzip>
221 220
222 <delete file="${html5.archive}"/ --> 221 <delete file="${html5.archive}"/ -->
223 222
224 <!-- copy the dart.js file into the samples directory --> 223 <!-- copy the dart.js file into the samples directory -->
225 <copy todir="${samples.out.dir}" file="${build.source.root}/client/dart. js"/> 224 <copy todir="${samples.out.dir}" file="${build.source.root}/client/dart. js"/>
226 </target> 225 </target>
227 226
228 <!-- - - - - - - - - - - - - - - - - - 227 <!-- - - - - - - - - - - - - - - - - - -
229 target: getSdk 228 target: installSdk
229 Install the sdk zip unless a path to an SDK exists - build.dart.sdk.
230 - - - - - - - - - - - - - - - - - --> 230 - - - - - - - - - - - - - - - - - -->
231 <target name="getSdk" if="build.download.sdk" depends="setOS"> 231 <target name="installSdk" unless="build.dart.sdk">
232 <echoProperty propertyname="build.dart.sdk"/>
233
232 <get src="http://gsdview.appspot.com/dart-editor-archive-continuous/late st/dartsdk-${osfamily}-32.zip" 234 <get src="http://gsdview.appspot.com/dart-editor-archive-continuous/late st/dartsdk-${osfamily}-32.zip"
233 dest="${build.dart.sdk.zip}" 235 dest="${build.dart.sdk.zip}"
234 usetimestamp="true" /> 236 usetimestamp="true" />
235 <delete dir="${build.stage.include.dir}/dart-sdk"/> 237
236 </target>
237
238 <!-- - - - - - - - - - - - - - - - - -
239 target: installSdkInWindows
240 Use the standard Ant unzip task to install the sdk
241 - - - - - - - - - - - - - - - - - -->
242 <target name="installSdkInWindows" if="installSdkWindows" depends="getSdk">
243 <unzip src="${build.dart.sdk.zip}" dest="${build.stage.include.dir}" />
244 </target>
245
246 <!-- - - - - - - - - - - - - - - - - -
247 target: installSdkInNonWindows
248 The standard Ant unzip task destroys execute permissions in the sdk
249 so use the command line unzip instead
250 - - - - - - - - - - - - - - - - - -->
251 <target name="installSdkInNonWindows" if="installSdkNotWindows" depends="get Sdk">
252 <echo message="unzipping ${build.dart.sdk.zip} to ${build.stage.include. dir}"/> 238 <echo message="unzipping ${build.dart.sdk.zip} to ${build.stage.include. dir}"/>
253 <mkdir dir="${build.stage.include.dir}" /> 239 <mkdir dir="${build.stage.include.dir}" />
240 <delete dir="${build.stage.include.dir}/dart-sdk"/>
254 <exec executable="unzip" dir="${build.stage.include.dir}"> 241 <exec executable="unzip" dir="${build.stage.include.dir}">
255 <arg value="-q"/> 242 <arg value="-q"/>
256 <arg value="${build.dart.sdk.zip}"/> 243 <arg value="${build.dart.sdk.zip}"/>
257 </exec> 244 </exec>
258 </target> 245 </target>
259
260 <!-- - - - - - - - - - - - - - - - - - -
261 target: installSdk
262 Install the sdk zip if build.os is set
263 - - - - - - - - - - - - - - - - - -->
264 <target name="installSdk" depends="installSdkInNonWindows, installSdkInWindo ws">
265 </target>
266 246
267 <!-- - - - - - - - - - - - - - - - - - 247 <!-- - - - - - - - - - - - - - - - - -
268 target: setupDevWorkspace 248 target: setupDevWorkspace
269 - - - - - - - - - - - - - - - - - --> 249 - - - - - - - - - - - - - - - - - -->
270 <target name="setupDevWorkspace" 250 <target name="setupDevWorkspace"
271 depends="initDevWorkspace, buildSamples, installSdk"> 251 depends="initDevWorkspace, buildSamples, installSdk">
272 </target> 252 </target>
273 253
274 <!-- - - - - - - - - - - - - - - - - - 254 <!-- - - - - - - - - - - - - - - - - -
275 target: initDevWorkspace 255 target: initDevWorkspace
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 </fileset> 310 </fileset>
331 <pathconvert property="eclipse.runtime.launcher.jar" refid="launcherFs" /> 311 <pathconvert property="eclipse.runtime.launcher.jar" refid="launcherFs" />
332 </target> 312 </target>
333 313
334 <!-- 314 <!--
335 copy the code from the svn structure to the PDE structure and get rid of the linked resources 315 copy the code from the svn structure to the PDE structure and get rid of the linked resources
336 --> 316 -->
337 <target name="setupBuild" depends="init, installSdk, setupRuntimeEclipse, bu ildSamples" > 317 <target name="setupBuild" depends="init, installSdk, setupRuntimeEclipse, bu ildSamples" >
338 <setupTargetEclipse location="${build.target}" eclipse="${build.target.e clipse.version}" 318 <setupTargetEclipse location="${build.target}" eclipse="${build.target.e clipse.version}"
339 arch="${build.eclipse.arch}" /> 319 arch="${build.eclipse.arch}" />
340 <!-- installDirIntoTargetEclipse updatesite="${build.source.root}/third_ party/chromesdk/0.3.0"
341 ius="org.chromium.sdk.feature.group"
342 uniqueId="chrome"/ -->
343 <!-- installDirIntoTargetEclipse updatesite="${build.source.root}/third_ party/usageprofiler"
344 ius="com.google.gdt.eclipse.usageprofiler.f eature.feature.group"
345 uniqueId="profiler"/-->
346 <delete file="${build.source.root}/third_party/closure_compiler_src/buil d/compiler.jar" 320 <delete file="${build.source.root}/third_party/closure_compiler_src/buil d/compiler.jar"
347 failonerror="false" /> 321 failonerror="false" />
348 <!-- closure compiler no longer part of the build
349 ant antfile="build.xml" dir="${build.source.root}/third_party/closure_ compiler_src"
350 inheritall="false" inheritrefs="false" / -->
351 <property name="eclipse.runtime.dir" 322 <property name="eclipse.runtime.dir"
352 value="${build.runtime}/eclipse" /> 323 value="${build.runtime}/eclipse" />
353 <mkdir dir="${build.stage.plugins}" /> 324 <mkdir dir="${build.stage.plugins}" />
354 <mkdir dir="${build.stage.features}" /> 325 <mkdir dir="${build.stage.features}" />
355 326
356 <copy todir="${build.stage.plugins}"> 327 <copy todir="${build.stage.plugins}">
357 <fileset dir="${build.source}/tools/plugins"> 328 <fileset dir="${build.source}/tools/plugins">
358 <exclude name="*_test/**" /> 329 <exclude name="*_test/**" />
359 <exclude name="**/bin/**" /> 330 <exclude name="**/bin/**" />
360 </fileset> 331 </fileset>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 }</echo> 451 }</echo>
481 </target> 452 </target>
482 453
483 <!-- - - - - - - - - - - - - - - - - - 454 <!-- - - - - - - - - - - - - - - - - -
484 target: doDeploy_rcp 455 target: doDeploy_rcp
485 - - - - - - - - - - - - - - - - - --> 456 - - - - - - - - - - - - - - - - - -->
486 <target name="doDeploy_rcp" depends="init, setupBuild, doBuild_rcp, package_ rcp"> 457 <target name="doDeploy_rcp" depends="init, setupBuild, doBuild_rcp, package_ rcp">
487 </target> 458 </target>
488 459
489 </project> 460 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698