OLD | NEW |
1 <project name="Dart Editor for Eclipse" default="build"> | 1 <project name="Dart Editor for Eclipse" default="build"> |
2 | 2 |
3 <!-- init --> | 3 <!-- init --> |
4 <target name="init"> | 4 <target name="init"> |
5 <fail message="please create a ${user.name}.properties file in build-set
tings/ to config this build (see sample.properties)"> | 5 <fail message="please create a ${user.name}.properties file in build-set
tings/ to config this build (see sample.properties)"> |
6 <condition> | 6 <condition> |
7 <not> | 7 <not> |
8 <available file="build-settings/${user.name}.properties" typ
e="file" /> | 8 <available file="build-settings/${user.name}.properties" typ
e="file" /> |
9 </not> | 9 </not> |
10 </condition> | 10 </condition> |
(...skipping 11 matching lines...) Expand all Loading... |
22 <fail unless="source.dir" message="source.dir property is required"/> | 22 <fail unless="source.dir" message="source.dir property is required"/> |
23 <fail message="source.dir does not exist: ${source.dir}"> | 23 <fail message="source.dir does not exist: ${source.dir}"> |
24 <condition> | 24 <condition> |
25 <not> | 25 <not> |
26 <available file="${source.dir}" type="dir" /> | 26 <available file="${source.dir}" type="dir" /> |
27 </not> | 27 </not> |
28 </condition> | 28 </condition> |
29 </fail> | 29 </fail> |
30 | 30 |
31 <!-- parse the tools/VERSION file into an ant property --> | 31 <!-- parse the tools/VERSION file into an ant property --> |
32 <!-- the format is "MAJOR x\nMINOR x\nBUILD x\nPATCH n" --> | 32 <!-- the format is "MAJOR x\nMINOR x\nPATCH n" --> |
33 <loadproperties srcFile="${source.dir}/../../tools/VERSION"> | 33 <loadproperties srcFile="${source.dir}/../../tools/VERSION"> |
34 <filterchain> | 34 <filterchain> |
35 <replaceregex pattern=" " replace="="/> | 35 <replaceregex pattern=" " replace="="/> |
36 </filterchain> | 36 </filterchain> |
37 </loadproperties> | 37 </loadproperties> |
38 <property name="dart.version" value="${MAJOR}.${MINOR}.${BUILD}" /> | 38 <property name="dart.version" value="${MAJOR}.${MINOR}.${PATCH}" /> |
39 <property name="dart.version_revision" value="${dart.version}_${build.re
vision}" /> | 39 <property name="dart.version_revision" value="${dart.version}_${build.re
vision}" /> |
40 <echo message="Dart version is ${dart.version} (${dart.version_revision}
)"></echo> | 40 <echo message="Dart version is ${dart.version} (${dart.version_revision}
)"></echo> |
41 </target> | 41 </target> |
42 | 42 |
43 <!-- clean --> | 43 <!-- clean --> |
44 <target name="clean" depends="init"> | 44 <target name="clean" depends="init"> |
45 <delete dir="${build.dir}/I.build"/> | 45 <delete dir="${build.dir}/I.build"/> |
46 <delete dir="${build.dir}/buildRepo"/> | 46 <delete dir="${build.dir}/buildRepo"/> |
47 | 47 |
48 <delete dir="${build.dir}/com.google.dart.eclipse.feature_releng"/> | 48 <delete dir="${build.dir}/com.google.dart.eclipse.feature_releng"/> |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 <touch file="${build.dir}/features/com.google.dart.eclipse.feature/featu
re.xml"/> | 146 <touch file="${build.dir}/features/com.google.dart.eclipse.feature/featu
re.xml"/> |
147 | 147 |
148 <xmlproperty file="${build.dir}/features/com.google.dart.eclipse.featu
re/feature.xml" collapseAttributes="true"/> | 148 <xmlproperty file="${build.dir}/features/com.google.dart.eclipse.featu
re/feature.xml" collapseAttributes="true"/> |
149 | 149 |
150 <echo message="replacing @CHANNEL@ in ${build.stage.plugins}/com.google.
dart.tools.core/update.properties" /> | 150 <echo message="replacing @CHANNEL@ in ${build.stage.plugins}/com.google.
dart.tools.core/update.properties" /> |
151 <replace dir="${build.dir}/plugins/com.google.dart.tools.core" > | 151 <replace dir="${build.dir}/plugins/com.google.dart.tools.core" > |
152 <include name="update.properties" /> | 152 <include name="update.properties" /> |
153 <replacefilter token="@CHANNEL@" value="${build.channel}" /> | 153 <replacefilter token="@CHANNEL@" value="${build.channel}" /> |
154 </replace> | 154 </replace> |
155 | 155 |
| 156 <echo message="replacing @VERSION_QUALIFIER@ in ${build.stage.features}/
com.google.dart.eclipse.feature_releng/build.properties" /> |
| 157 <replace dir="${build.dir}/features/com.google.dart.eclipse.feature_rele
ng"> |
| 158 <include name="build.properties" /> |
| 159 <replacefilter token="@VERSION_QUALIFIER@" value="${build.version.qu
alifier}" /> |
| 160 </replace> |
| 161 |
156 <echo message="Dart Editor for Eclipse version ${feature.version}"/> | 162 <echo message="Dart Editor for Eclipse version ${feature.version}"/> |
157 <echo message="Building for Eclipse 3.7+"/> | 163 <echo message="Building for Eclipse 3.7+"/> |
158 </target> | 164 </target> |
159 | 165 |
160 <!-- pde_build --> | 166 <!-- pde_build --> |
161 <target name="pde_build" depends="setup"> | 167 <target name="pde_build" depends="setup"> |
162 <mkdir dir="${build.dir}/buildRepo"/> | 168 <mkdir dir="${build.dir}/buildRepo"/> |
163 | 169 |
164 <!-- invoke PDE --> | 170 <!-- invoke PDE --> |
165 <sequential> | 171 <sequential> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 <include name="assemble.com.google.dart.eclipse.*.xml"/> | 231 <include name="assemble.com.google.dart.eclipse.*.xml"/> |
226 <include name="final*.properties"/> | 232 <include name="final*.properties"/> |
227 <include name="package.com.google.dart.eclipse.feature.*.xml"/> | 233 <include name="package.com.google.dart.eclipse.feature.*.xml"/> |
228 </fileset> | 234 </fileset> |
229 </delete> | 235 </delete> |
230 | 236 |
231 <!--zip destfile="${build.dir}/updatesite-${feature.version}.z
ip" basedir="${build.dir}/buildRepo"/--> | 237 <!--zip destfile="${build.dir}/updatesite-${feature.version}.z
ip" basedir="${build.dir}/buildRepo"/--> |
232 </target> | 238 </target> |
233 | 239 |
234 </project> | 240 </project> |
OLD | NEW |