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

Side by Side Diff: editor/tools/features/com.google.dart.tools.deploy.feature_releng/build-common.xml

Issue 8631010: Move bundled libraries out of plugins (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ====================================================================== 2 <!-- ======================================================================
3 Sep 6, 2011 4:17:37 PM 3 Sep 6, 2011 4:17:37 PM
4 4
5 Dart Tools build common Ant Script 5 Dart Tools build common Ant Script
6 Common targets and macros for the build of Dart Tools 6 Common targets and macros for the build of Dart Tools
7 7
8 mrrussell 8 mrrussell
9 ====================================================================== --> 9 ====================================================================== -->
10 <project name="Dart Tools build common Ant Script" default="notStandalone"> 10 <project name="Dart Tools build common Ant Script" default="notStandalone">
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 <echo message="********************************************************* *****************" /> 372 <echo message="********************************************************* *****************" />
373 <echo message="********************************************************* *****************" /> 373 <echo message="********************************************************* *****************" />
374 <echo message="********************************************************* *****************" /> 374 <echo message="********************************************************* *****************" />
375 <echo message="" /> 375 <echo message="" />
376 <echo message="" /> 376 <echo message="" />
377 <echo message="Eclipse log file" /> 377 <echo message="Eclipse log file" />
378 <concat > 378 <concat >
379 <fileset dir="${build.stage}/workspace/.metadata" includes=".log" /> 379 <fileset dir="${build.stage}/workspace/.metadata" includes=".log" />
380 </concat> 380 </concat>
381 </target> 381 </target>
382
383 <!--
384 **************************************************************************** ****
385 Macro: copyDartLib
386
387 Parse the @{name}.dart library file to determine the referenced #source and #native files
388 then copy that file and the referenced files to a new directory
389
390 required attributes:
391 name - the short name of the dart library (e.g "dom", "core")
392 dir - the directory containing the library source
393
394 optional attributes:
395 todir - the destination directory - defaults to ${libraries.out.di r}/@{name}
396 tmpdir - temp directory - defaults to ${build.tmp}/lib
397
398 ant properties required
399 build.tmp - temparary location for build work
400
401 ant properties set
402 dart.@{name}.files - comma separated list of #source and #native files i n the library
403
404 **************************************************************************** ****
405 -->
406 <macrodef name="copyDartLib">
407 <attribute name="name" />
408 <attribute name="dir" />
409 <attribute name="libfile" default="@{name}.dart"/>
410 <attribute name="todir" default="${libraries.out.dir}/@{name}"/>
411 <attribute name="tmpdir" default="${build.tmp}/lib"/>
412 <sequential>
413 <mkdir dir="@{tmpdir}"/>
414 <copy file="@{dir}/@{libfile}" tofile="@{tmpdir}/@{name}-files.txt"/ >
415 <replaceregexp file="@{tmpdir}/@{name}-files.txt" flags="s" match="c lass\s+\w+\s+\{.*" replace=""/>
416 <replaceregexp file="@{tmpdir}/@{name}-files.txt" flags="s" match="/ \*.*\*/" replace=""/>
417 <replaceregexp file="@{tmpdir}/@{name}-files.txt" byline="true" matc h="#source\(.(.*).\);" replace="\1,"/>
418 <replaceregexp file="@{tmpdir}/@{name}-files.txt" byline="true" matc h="#native\(.(.*).\);" replace="\1,"/>
419 <loadfile property="dart.@{name}.files" srcfile="@{tmpdir}/@{name}-f iles.txt">
420 <filterchain>
421 <striplinecomments>
422 <comment value="#"/>
423 <comment value="//"/>
424 </striplinecomments>
425 <striplinebreaks/>
426 </filterchain>
427 </loadfile>
428 <echo message="Copying dart:@{name} files @{libfile},${dart.@{name}. files}"/>
429 <echo message="to @{todir}" />
430 <mkdir dir="@{todir}"/>
431 <copy todir="@{todir}">
432 <fileset dir="@{dir}" includes="@{libfile},${dart.@{name}.files} "/>
433 </copy>
434 </sequential>
435 </macrodef>
382 436
383 </project> 437 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698