| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 --> | 125 --> |
| 126 <copy file="${dart_analyzer.jar}" todir="${dist.dir}/util/analyzer"/> | 126 <copy file="${dart_analyzer.jar}" todir="${dist.dir}/util/analyzer"/> |
| 127 | 127 |
| 128 <!-- | 128 <!-- |
| 129 Re-root the classpaths from third_party into the util folder of the distro
. | 129 Re-root the classpaths from third_party into the util folder of the distro
. |
| 130 --> | 130 --> |
| 131 <pathconvert property="analyzer.classpath.runtime.unix" targetos="unix" refi
d="classpath.runtime"> | 131 <pathconvert property="analyzer.classpath.runtime.unix" targetos="unix" refi
d="classpath.runtime"> |
| 132 <regexpmapper from="${third_party.dir}/(.*)" to="$DART_ANALYZER_LIBS/\1"/> | 132 <regexpmapper from="${third_party.dir}/(.*)" to="$DART_ANALYZER_LIBS/\1"/> |
| 133 </pathconvert> | 133 </pathconvert> |
| 134 | 134 |
| 135 <pathconvert property="analyzer.classpath.runtime.win" targetos="windows" re
fid="classpath.runtime"> |
| 136 <regexpmapper from="(.*)third_party\\(.*)" to="%DART_ANALYZER_LIBS%\\\2"/> |
| 137 </pathconvert> |
| 138 |
| 135 <copy file="scripts/dart_analyzer.sh" tofile="${dist.dir}/bin/dart_analyzer"
> | 139 <copy file="scripts/dart_analyzer.sh" tofile="${dist.dir}/bin/dart_analyzer"
> |
| 136 <filterset> | 140 <filterset> |
| 137 <filter token="CLASSPATH" value="$DART_ANALYZER_LIBS/dart_analyzer.jar:$
{analyzer.classpath.runtime.unix}"/> | 141 <filter token="CLASSPATH" value="$DART_ANALYZER_LIBS/dart_analyzer.jar:$
{analyzer.classpath.runtime.unix}"/> |
| 138 </filterset> | 142 </filterset> |
| 139 </copy> | 143 </copy> |
| 140 <chmod file="${dist.dir}/bin/dart_analyzer" perm="a+rx"/> | 144 <chmod file="${dist.dir}/bin/dart_analyzer" perm="a+rx"/> |
| 141 | 145 |
| 146 <copy file="scripts/dart_analyzer.bat" tofile="${dist.dir}/bin/dart_analyzer
.bat"> |
| 147 <filterset> |
| 148 <filter |
| 149 token="CLASSPATH" |
| 150 value="%DART_ANALYZER_LIBS%\dart_analyzer.jar;${analyzer.classpath.run
time.win}"/> |
| 151 </filterset> |
| 152 </copy> |
| 153 |
| 142 <!-- | 154 <!-- |
| 143 TODO: The following files are not strictly due to dist, move them out. | 155 TODO: The following files are not strictly due to dist, move them out. |
| 144 --> | 156 --> |
| 145 <copy todir="${build.dir}"> | 157 <copy todir="${build.dir}"> |
| 146 <fileset dir="scripts"> | 158 <fileset dir="scripts"> |
| 147 <include name="analyzer_metrics.sh"/> | 159 <include name="analyzer_metrics.sh"/> |
| 148 </fileset> | 160 </fileset> |
| 149 <filterset> | 161 <filterset> |
| 150 <filter token="CLASSPATH" value="$DART_ANALYZER_LIBS/dart_analyzer.jar:$
{analyzer.classpath.runtime.unix}"/> | 162 <filter token="CLASSPATH" value="$DART_ANALYZER_LIBS/dart_analyzer.jar:$
{analyzer.classpath.runtime.unix}"/> |
| 151 </filterset> | 163 </filterset> |
| 152 </copy> | 164 </copy> |
| 153 <chmod file="${build.dir}/analyzer_metrics.sh" perm="a+rx"/> | 165 <chmod file="${build.dir}/analyzer_metrics.sh" perm="a+rx"/> |
| 154 | 166 |
| 155 <!-- | 167 <!-- |
| 156 Copy of all dependencies to the util folder. | 168 Copy of all dependencies to the util folder. |
| 157 --> | 169 --> |
| 158 <copy todir="${dist.dir}/util/analyzer"> | 170 <copy todir="${dist.dir}/util/analyzer"> |
| 159 <path refid="classpath.runtime"/> | 171 <path refid="classpath.runtime"/> |
| 160 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> | 172 <regexpmapper from="(.*)third_party[/\\](.*)" to="\2"/> |
| 161 </copy> | 173 </copy> |
| 162 </target> | 174 </target> |
| 163 | 175 |
| 164 <target name="clean" description="Deletes the build output directory."> | 176 <target name="clean" description="Deletes the build output directory."> |
| 165 <delete dir="${build.dir}"/> | 177 <delete dir="${build.dir}"/> |
| 166 <delete dir="${dist.dir}"/> | 178 <delete dir="${dist.dir}"/> |
| 167 </target> | 179 </target> |
| 168 | 180 |
| 169 <target name="tests.jar" depends="compile-tests"> | 181 <target name="tests.jar" depends="compile-tests"> |
| 170 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 182 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
| 171 </target> | 183 </target> |
| 172 </project> | 184 </project> |
| OLD | NEW |