| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 <!-- | 65 <!-- |
| 66 Ensure the necessary subdirectories exist. | 66 Ensure the necessary subdirectories exist. |
| 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" |
| 77 target="1.6"> |
| 76 <classpath refid="classpath.compile"/> | 78 <classpath refid="classpath.compile"/> |
| 77 </javac> | 79 </javac> |
| 78 <!-- | 80 <!-- |
| 79 Copy all non-java resources. | 81 Copy all non-java resources. |
| 80 --> | 82 --> |
| 81 <copy todir="${build.classes.dir}"> | 83 <copy todir="${build.classes.dir}"> |
| 82 <filelist refid="java_resources"/> | 84 <filelist refid="java_resources"/> |
| 83 </copy> | 85 </copy> |
| 84 </target> | 86 </target> |
| 85 | 87 |
| 86 <!-- | 88 <!-- |
| 87 We rely on GYP to call these targets when dependencies change, hence this | 89 We rely on GYP to call these targets when dependencies change, hence this |
| 88 ant file cannot be used standalone. | 90 ant file cannot be used standalone. |
| 89 --> | 91 --> |
| 90 <target name="compile-tests" depends="compile" description="Compiles all of th
e java tests and copies the resources to the test classes directory." > | 92 <target name="compile-tests" depends="compile" description="Compiles all of th
e java tests and copies the resources to the test classes directory." > |
| 91 <mkdir dir="${build.test.classes.dir}"/> | 93 <mkdir dir="${build.test.classes.dir}"/> |
| 92 <javac destdir="${build.test.classes.dir}" | 94 <javac destdir="${build.test.classes.dir}" |
| 93 sourcepath="" | 95 sourcepath="" |
| 94 srcdir="javatests" | 96 srcdir="javatests" |
| 95 includes="${javatests_sources}" | 97 includes="${javatests_sources}" |
| 96 excludes="com/google/dart/compiler/vm/**" | 98 excludes="com/google/dart/compiler/vm/**" |
| 97 fork="true" | 99 fork="true" |
| 98 debug="true"> | 100 debug="true" |
| 101 source="1.6" |
| 102 target="1.6"> |
| 99 <classpath refid="classpath.compile.tests"/> | 103 <classpath refid="classpath.compile.tests"/> |
| 100 </javac> | 104 </javac> |
| 101 <!-- | 105 <!-- |
| 102 Copy the non-java resources. | 106 Copy the non-java resources. |
| 103 --> | 107 --> |
| 104 <copy todir="${build.test.classes.dir}"> | 108 <copy todir="${build.test.classes.dir}"> |
| 105 <filelist refid="javatests_resources"/> | 109 <filelist refid="javatests_resources"/> |
| 106 </copy> | 110 </copy> |
| 107 </target> | 111 </target> |
| 108 | 112 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 179 |
| 176 <target name="clean" description="Deletes the build output directory."> | 180 <target name="clean" description="Deletes the build output directory."> |
| 177 <delete dir="${build.dir}"/> | 181 <delete dir="${build.dir}"/> |
| 178 <delete dir="${dist.dir}"/> | 182 <delete dir="${dist.dir}"/> |
| 179 </target> | 183 </target> |
| 180 | 184 |
| 181 <target name="tests.jar" depends="compile-tests"> | 185 <target name="tests.jar" depends="compile-tests"> |
| 182 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 186 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
| 183 </target> | 187 </target> |
| 184 </project> | 188 </project> |
| OLD | NEW |