OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 Copyright (c) 2012, 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 <project default="dist"> | 6 <project default="dist"> |
7 <import file="sources.xml"/> | 7 <import file="sources.xml"/> |
8 <import file="test_sources.xml"/> | 8 <import file="test_sources.xml"/> |
9 | 9 |
10 <!-- | 10 <!-- |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 --> | 67 --> |
68 <mkdir dir="${build.classes.dir}"/> | 68 <mkdir dir="${build.classes.dir}"/> |
69 | 69 |
70 <javac destdir="${build.classes.dir}" | 70 <javac destdir="${build.classes.dir}" |
71 sourcepath="" | 71 sourcepath="" |
72 srcdir="java" | 72 srcdir="java" |
73 includes="${java_sources}" | 73 includes="${java_sources}" |
74 fork="true" | 74 fork="true" |
75 debug="true" | 75 debug="true" |
76 source="1.6" | 76 source="1.6" |
77 target="1.6"> | 77 target="1.6" |
| 78 includeAntRuntime="false"> |
78 <classpath refid="classpath.compile"/> | 79 <classpath refid="classpath.compile"/> |
79 </javac> | 80 </javac> |
80 <!-- | 81 <!-- |
81 Copy all non-java resources. | 82 Copy all non-java resources. |
82 --> | 83 --> |
83 <copy todir="${build.classes.dir}"> | 84 <copy todir="${build.classes.dir}"> |
84 <filelist refid="java_resources"/> | 85 <filelist refid="java_resources"/> |
85 </copy> | 86 </copy> |
86 </target> | 87 </target> |
87 | 88 |
88 <!-- | 89 <!-- |
89 We rely on GYP to call these targets when dependencies change, hence this | 90 We rely on GYP to call these targets when dependencies change, hence this |
90 ant file cannot be used standalone. | 91 ant file cannot be used standalone. |
91 --> | 92 --> |
92 <target name="compile-tests" depends="compile" description="Compiles all of th
e java tests and copies the resources to the test classes directory." > | 93 <target name="compile-tests" depends="compile" description="Compiles all of th
e java tests and copies the resources to the test classes directory." > |
93 <mkdir dir="${build.test.classes.dir}"/> | 94 <mkdir dir="${build.test.classes.dir}"/> |
94 <javac destdir="${build.test.classes.dir}" | 95 <javac destdir="${build.test.classes.dir}" |
95 sourcepath="" | 96 sourcepath="" |
96 srcdir="javatests" | 97 srcdir="javatests" |
97 includes="${javatests_sources}" | 98 includes="${javatests_sources}" |
98 excludes="com/google/dart/compiler/vm/**" | 99 excludes="com/google/dart/compiler/vm/**" |
99 fork="true" | 100 fork="true" |
100 debug="true" | 101 debug="true" |
101 source="1.6" | 102 source="1.6" |
102 target="1.6"> | 103 target="1.6" |
| 104 includeAntRuntime="false"> |
103 <classpath refid="classpath.compile.tests"/> | 105 <classpath refid="classpath.compile.tests"/> |
104 </javac> | 106 </javac> |
105 <!-- | 107 <!-- |
106 Copy the non-java resources. | 108 Copy the non-java resources. |
107 --> | 109 --> |
108 <copy todir="${build.test.classes.dir}"> | 110 <copy todir="${build.test.classes.dir}"> |
109 <filelist refid="javatests_resources"/> | 111 <filelist refid="javatests_resources"/> |
110 </copy> | 112 </copy> |
111 </target> | 113 </target> |
112 | 114 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 181 |
180 <target name="clean" description="Deletes the build output directory."> | 182 <target name="clean" description="Deletes the build output directory."> |
181 <delete dir="${build.dir}"/> | 183 <delete dir="${build.dir}"/> |
182 <delete dir="${dist.dir}"/> | 184 <delete dir="${dist.dir}"/> |
183 </target> | 185 </target> |
184 | 186 |
185 <target name="tests.jar" depends="compile-tests"> | 187 <target name="tests.jar" depends="compile-tests"> |
186 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 188 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
187 </target> | 189 </target> |
188 </project> | 190 </project> |
OLD | NEW |