| OLD | NEW |
| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 Current value: ${build.source}. | 94 Current value: ${build.source}. |
| 95 ********************************** | 95 ********************************** |
| 96 <condition> | 96 <condition> |
| 97 <not> | 97 <not> |
| 98 <available file="${build.source}/docs/README.txt" type="file
" /> | 98 <available file="${build.source}/docs/README.txt" type="file
" /> |
| 99 </not> | 99 </not> |
| 100 </condition> | 100 </condition> |
| 101 </fail> | 101 </fail> |
| 102 | 102 |
| 103 <!-- parse the tools/VERSION file into an ant property --> | 103 <!-- parse the tools/VERSION file into an ant property --> |
| 104 <!-- the format is "MAJOR x\nMINOR x\nBUILD x\nPATCH n" --> | 104 <!-- the format is "MAJOR x\nMINOR x\nPATCH n" --> |
| 105 <loadproperties srcFile="${build.source}/../tools/VERSION"> | 105 <loadproperties srcFile="${build.source}/../tools/VERSION"> |
| 106 <filterchain> | 106 <filterchain> |
| 107 <replaceregex pattern=" " replace="="/> | 107 <replaceregex pattern=" " replace="="/> |
| 108 </filterchain> | 108 </filterchain> |
| 109 </loadproperties> | 109 </loadproperties> |
| 110 <property name="dart.version" value="${MAJOR}.${MINOR}.${BUILD}" /> | 110 <property name="dart.version" value="${MAJOR}.${MINOR}.${PATCH}" /> |
| 111 | 111 |
| 112 <condition property="build.revision" value="${env.BUILDBOT_GOT_REVISION}
"> | 112 <condition property="build.revision" value="${env.BUILDBOT_GOT_REVISION}
"> |
| 113 <isset property="env.BUILDBOT_GOT_REVISION" /> | 113 <isset property="env.BUILDBOT_GOT_REVISION" /> |
| 114 </condition> | 114 </condition> |
| 115 <property name="build.revision" value="000" /> | 115 <property name="build.revision" value="000" /> |
| 116 <property name="dart.version_revision" value="${dart.version}_${build.re
vision}" /> | 116 <property name="dart.version_revision" value="${dart.version}_${build.re
vision}" /> |
| 117 <!-- TODO(devoncarew): we should pull this info from tools/version.dart
--> | |
| 118 <property name="dart.version.full" value="${MAJOR}.${MINOR}.${BUILD}.${P
ATCH}_r${build.revision}" /> | |
| 119 | 117 |
| 120 <dirname file="${build.source}" property="build.source.root"/> | 118 <dirname file="${build.source}" property="build.source.root"/> |
| 121 | 119 |
| 122 <property name="build.thirdparty" location="${build.source.root}/third_p
arty" /> | 120 <property name="build.thirdparty" location="${build.source.root}/third_p
arty" /> |
| 123 | 121 |
| 124 <property name="build.stage.scripts" location="${build.stage}/scripts" /
> | 122 <property name="build.stage.scripts" location="${build.stage}/scripts" /
> |
| 125 <!-- echoproperties prefix="java." / --> | 123 <!-- echoproperties prefix="java." / --> |
| 126 <!-- echoproperties prefix="build." / --> | 124 <!-- echoproperties prefix="build." / --> |
| 127 <property name="build.runtime.abs" location="${build.runtime}" /> | 125 <property name="build.runtime.abs" location="${build.runtime}" /> |
| 128 <property name="build.target.abs" location="${build.target}" /> | 126 <property name="build.target.abs" location="${build.target}" /> |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 </fileset> | 356 </fileset> |
| 359 </copy> | 357 </copy> |
| 360 | 358 |
| 361 <replace dir="${build.stage.features}/com.google.dart.tools.deploy.featu
re"> | 359 <replace dir="${build.stage.features}/com.google.dart.tools.deploy.featu
re"> |
| 362 <include name="*.html" /> | 360 <include name="*.html" /> |
| 363 <include name="*.mappings" /> | 361 <include name="*.mappings" /> |
| 364 <replacefilter token="@BUILDDATE@" value="${build.date.ymd}" /> | 362 <replacefilter token="@BUILDDATE@" value="${build.date.ymd}" /> |
| 365 <replacefilter token="@REVISION@" value="${build.revision}" /> | 363 <replacefilter token="@REVISION@" value="${build.revision}" /> |
| 366 <replacefilter token="@BUILDYEAR@" value="${build.year}" /> | 364 <replacefilter token="@BUILDYEAR@" value="${build.year}" /> |
| 367 </replace> | 365 </replace> |
| 366 |
| 368 <echo message="replacing @BUILDCONFIGS@ in ${build.stage.features}/com.g
oogle.dart.tools.deploy.feature_releng/build.properties" /> | 367 <echo message="replacing @BUILDCONFIGS@ in ${build.stage.features}/com.g
oogle.dart.tools.deploy.feature_releng/build.properties" /> |
| 369 <replace dir="${build.stage.features}/com.google.dart.tools.deploy.featu
re_releng"> | 368 <replace dir="${build.stage.features}/com.google.dart.tools.deploy.featu
re_releng"> |
| 370 <include name="build.properties" /> | 369 <include name="build.properties" /> |
| 371 <replacefilter token="@BUILDCONFIGS@" value="${build.configs}" /> | 370 <replacefilter token="@BUILDCONFIGS@" value="${build.configs}" /> |
| 372 </replace> | 371 </replace> |
| 373 | 372 |
| 373 <echo message="replacing @VERSION_QUALIFIER@ in ${build.stage.features}/
com.google.dart.tools.deploy.feature_releng/build.properties" /> |
| 374 <replace dir="${build.stage.features}/com.google.dart.tools.deploy.featu
re_releng"> |
| 375 <include name="build.properties" /> |
| 376 <replacefilter token="@VERSION_QUALIFIER@" value="${build.version.qu
alifier}" /> |
| 377 </replace> |
| 378 |
| 374 <replace dir="${build.stage.plugins}/com.google.dart.tools.core" > | 379 <replace dir="${build.stage.plugins}/com.google.dart.tools.core" > |
| 375 <include name="**/DartCore.java" /> | 380 <include name="**/DartCore.java" /> |
| 376 <replacefilter token="@BUILDDATE@" value="${build.date.ymd}" /> | 381 <replacefilter token="@BUILDDATE@" value="${build.date.ymd}" /> |
| 377 <replacefilter token="@REVISION@" value="${build.revision}" /> | 382 <replacefilter token="@REVISION@" value="${build.revision}" /> |
| 378 </replace> | 383 </replace> |
| 379 | 384 |
| 380 <echo message="replacing @CHANNEL@ in ${build.stage.plugins}/com.google.
dart.tools.core/update.properties" /> | 385 <echo message="replacing @CHANNEL@ in ${build.stage.plugins}/com.google.
dart.tools.core/update.properties" /> |
| 381 <replace dir="${build.stage.plugins}/com.google.dart.tools.core" > | 386 <replace dir="${build.stage.plugins}/com.google.dart.tools.core" > |
| 382 <include name="update.properties" /> | 387 <include name="update.properties" /> |
| 383 <replacefilter token="@CHANNEL@" value="${build.channel}" /> | 388 <replacefilter token="@CHANNEL@" value="${build.channel}" /> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 }</echo> | 479 }</echo> |
| 475 </target> | 480 </target> |
| 476 | 481 |
| 477 <!-- - - - - - - - - - - - - - - - - - | 482 <!-- - - - - - - - - - - - - - - - - - |
| 478 target: doDeploy_rcp | 483 target: doDeploy_rcp |
| 479 - - - - - - - - - - - - - - - - - --> | 484 - - - - - - - - - - - - - - - - - --> |
| 480 <target name="doDeploy_rcp" depends="init, setupBuild, doBuild_rcp, package_
rcp"> | 485 <target name="doDeploy_rcp" depends="init, setupBuild, doBuild_rcp, package_
rcp"> |
| 481 </target> | 486 </target> |
| 482 | 487 |
| 483 </project> | 488 </project> |
| OLD | NEW |