OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 for details. All rights reserved. Use of this source code is governed by a | 3 for details. All rights reserved. Use of this source code is governed by a |
4 BSD-style license that can be found in the LICENSE file. | 4 BSD-style license that can be found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <project default="dist"> | 7 <project default="dist"> |
8 | 8 |
9 <!-- The arguments to this script are: --> | 9 <!-- The arguments to this script are: --> |
10 <!-- build: the scratch build directory (-Dbuild.dir=foo) --> | 10 <!-- build: the scratch build directory (-Dbuild.dir=foo) --> |
11 <!-- dist: the artifact output directory (-Ddist.dir=bar) --> | 11 <!-- dist: the artifact output directory (-Ddist.dir=bar) --> |
12 | 12 |
13 <target name="get-version"> | 13 <target name="get-version"> |
14 <exec dir="../../tools" | 14 <exec dir="../../tools" |
15 executable="testing/bin/windows/dart.exe" | 15 executable="python.exe" |
16 outputproperty="dart.version" | 16 outputproperty="dart.version" |
17 osfamily="windows"> | 17 osfamily="windows"> |
18 <arg value="version.dart" /> | 18 <arg value="print_version.py" /> |
19 </exec> | 19 </exec> |
20 <exec dir="../../tools" | 20 <exec dir="../../tools" |
21 executable="testing/bin/macos/dart" | 21 executable="python" |
22 outputproperty="dart.version" | 22 outputproperty="dart.version" |
23 osfamily="mac"> | 23 osfamily="mac"> |
24 <arg value="version.dart" /> | 24 <arg value="print_version.py" /> |
25 </exec> | 25 </exec> |
26 <exec dir="../../tools" | 26 <exec dir="../../tools" |
27 executable="testing/bin/linux/dart" | 27 executable="python" |
28 outputproperty="dart.version" | 28 outputproperty="dart.version" |
29 osfamily="unix" | 29 osfamily="unix" |
30 failonerror="false" | 30 failonerror="false" |
31 errorproperty="ignore.prop"> | 31 errorproperty="ignore.prop"> |
32 <arg value="version.dart" /> | 32 <arg value="print_version.py" /> |
33 </exec> | 33 </exec> |
34 | 34 |
35 <echo message="verison = ${dart.version}" /> | 35 <echo message="verison = ${dart.version}" /> |
36 </target> | 36 </target> |
37 | 37 |
38 <target name="init" depends="get-version"> | 38 <target name="init" depends="get-version"> |
39 <property name="build.dir" value="out" /> | 39 <property name="build.dir" value="out" /> |
40 <property name="dist.dir" value="${build.dir}/dist" /> | 40 <property name="dist.dir" value="${build.dir}/dist" /> |
41 <property name="third_party" value="../../third_party" /> | 41 <property name="third_party" value="../../third_party" /> |
42 <property name="source" value="../tools/plugins" /> | 42 <property name="source" value="../tools/plugins" /> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 </target> | 190 </target> |
191 | 191 |
192 | 192 |
193 <target name="all" depends="dist, analyzer-tests"> | 193 <target name="all" depends="dist, analyzer-tests"> |
194 <!-- create dist/dartanalyzer-tests.jar --> | 194 <!-- create dist/dartanalyzer-tests.jar --> |
195 <copy file="${build.dir}/dartanalyzer-tests.jar" | 195 <copy file="${build.dir}/dartanalyzer-tests.jar" |
196 tofile="${dist.dir}/dartanalyzer-tests.jar" /> | 196 tofile="${dist.dir}/dartanalyzer-tests.jar" /> |
197 </target> | 197 </target> |
198 | 198 |
199 </project> | 199 </project> |
OLD | NEW |