1 |
|
<project name="jsr166" default="usage"> |
2 |
|
|
3 |
|
<description> |
4 |
< |
Build file for JSR-166 |
4 |
> |
------------------------------------------------------------------------------ |
5 |
> |
Build file for JSR-166 |
6 |
|
|
7 |
< |
JUnit 3.8 or better must be in ${ant.home}/lib for the test target to work. |
7 |
< |
</description> |
7 |
> |
Usage: ant [target] |
8 |
|
|
9 |
+ |
User-specific settings are read from user.properties. |
10 |
+ |
See user.properties.sample for an explanation of some useful settings. |
11 |
+ |
------------------------------------------------------------------------------ |
12 |
+ |
</description> |
13 |
|
|
14 |
< |
<target name="usage" description="Prints this message"> |
15 |
< |
<echo> |
12 |
< |
ant [target], where target is one of: |
13 |
< |
|
14 |
< |
usage (default) Prints this message |
15 |
< |
compile Compiles all sources to build folder |
16 |
< |
jar Builds library jar from compiled sources |
17 |
< |
test Runs all tests (requires JUnit 1.8 in ${ant.home}/lib) |
18 |
< |
docs Builds javadocs with custom tags to build folder |
19 |
< |
dist-docs Builds javadocs without custom tags to dist folder |
20 |
< |
dist Puts all distributable products in single hierarchy |
21 |
< |
|
22 |
< |
clean Removes all build products |
23 |
< |
dist-clean Removes all build and distribution products |
24 |
< |
|
25 |
< |
checkstyle Reports on style errors in Java source (verbose, mostly chaff) |
26 |
< |
doccheck Reports on javadoc style errors (not working yet) |
27 |
< |
</echo> |
14 |
> |
<target name="usage" description="Advises user to run with -projecthelp"> |
15 |
> |
<echo>Run "ant -projecthelp" for full usage information.</echo> |
16 |
|
</target> |
17 |
|
|
18 |
+ |
|
19 |
|
<!-- User-specific settings --> |
20 |
|
<property file="user.properties"/> |
21 |
|
|
33 |
– |
<!-- Set build.warnings in user.properties to turn on -warnunchecked --> |
34 |
– |
<!-- <property name="build.warnings" value=""/> --> |
35 |
– |
|
22 |
|
|
23 |
|
<!-- Compilation options --> |
24 |
< |
<property name="build.sourcelevel" value="1.5"/> |
39 |
< |
<property name="build.docsourcelevel" value="1.4"/> |
24 |
> |
<property name="build.sourcelevel" value="1.6"/> |
25 |
|
<property name="build.debug" value="true"/> |
26 |
|
<property name="build.debuglevel" value="source,lines,vars"/> |
27 |
|
<property name="build.deprecation" value="false"/> |
28 |
|
|
29 |
|
<!-- Build locations --> |
30 |
< |
<property name="build.dir" location="build"/> |
31 |
< |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
32 |
< |
<property name="build.emulation.dir" location="${build.dir}/emulation"/> |
33 |
< |
<property name="build.testcases.dir" location="${build.dir}/testcases"/> |
34 |
< |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
35 |
< |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
36 |
< |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
37 |
< |
<property name="build.stripped.dir" location="${build.dir}/stripped"/> |
38 |
< |
<property name="build.reports.dir" location="${build.dir}/reports"/> |
39 |
< |
<property name="build.doccheck.dir" location="${build.dir}/doccheck"/> |
40 |
< |
<property name="build.filter.src.dir" location="${build.dir}/filtersrc"/> |
30 |
> |
<property name="build.dir" location="build"/> |
31 |
> |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
32 |
> |
<property name="build.testcases.dir" location="${build.dir}/testcases"/> |
33 |
> |
<property name="build.loops.dir" location="${build.dir}/loops"/> |
34 |
> |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
35 |
> |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
36 |
> |
<property name="build.reports.dir" location="${build.dir}/reports"/> |
37 |
> |
<property name="build.jsr166x.dir" location="${build.dir}/jsr166x"/> |
38 |
> |
<property name="build.jsr166xlib.dir" location="${build.dir}/jsr166xlib"/> |
39 |
> |
<property name="build.jsr166xjavadocs.dir" location="${build.dir}/jsr166xjavadocs"/> |
40 |
> |
|
41 |
> |
<property name="build.jsr166y.dir" location="${build.dir}/jsr166y"/> |
42 |
> |
<property name="build.jsr166ylib.dir" location="${build.dir}/jsr166ylib"/> |
43 |
> |
<property name="build.jsr166yjavadocs.dir" location="${build.dir}/jsr166yjavadocs"/> |
44 |
> |
|
45 |
> |
<property name="build.extra166y.dir" location="${build.dir}/extra166y"/> |
46 |
> |
<property name="build.extra166ylib.dir" location="${build.dir}/extra166ylib"/> |
47 |
> |
<property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/> |
48 |
|
|
49 |
|
<!-- Source locations --> |
50 |
|
<property name="src.dir" location="${basedir}/src/main"/> |
59 |
– |
<property name="emulation.src.dir" location="${basedir}/src/emulation"/> |
51 |
|
<property name="test.src.dir" location="${basedir}/src/test"/> |
52 |
< |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
53 |
< |
<property name="stylesheet.dir" location="${basedir}/etc/xsl"/> |
52 |
> |
<property name="loops.src.dir" location="${basedir}/src/loops"/> |
53 |
> |
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
54 |
> |
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
55 |
|
<property name="lib.dir" location="${basedir}/lib"/> |
56 |
|
<property name="dist.dir" location="${basedir}/dist"/> |
57 |
< |
|
57 |
> |
<property name="topsrc.dir" location="${basedir}/src"/> |
58 |
> |
<property name="jsr166xsrc.dir" location="${basedir}/src/jsr166x"/> |
59 |
> |
<property name="jsr166ysrc.dir" location="${basedir}/src/jsr166y"/> |
60 |
> |
<property name="extra166ysrc.dir" location="${basedir}/src/extra166y"/> |
61 |
> |
<property name="jdksrc.dir" location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/> |
62 |
|
<!-- Distribution locations --> |
63 |
< |
<property name="dist.javadocs.dir" location="${dist.dir}/docs"/> |
63 |
> |
<property name="dist.javadocs.dir" location="${dist.dir}/docs"/> |
64 |
> |
<property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/> |
65 |
> |
<property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/> |
66 |
> |
<property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/> |
67 |
|
|
68 |
|
<!-- Jar locations --> |
69 |
|
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
70 |
< |
<property name="javac.jar" location="${lib.dir}/javac.jar"/> |
71 |
< |
<property name="collect.jar" location="${lib.dir}/collect.jar"/> |
70 |
> |
<property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/> |
71 |
> |
<property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/> |
72 |
> |
<property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/> |
73 |
|
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
74 |
– |
<property name="rt.jar" location="${java.home}/lib/rt.jar"/> |
75 |
– |
|
76 |
– |
|
77 |
– |
<!-- |
78 |
– |
! Bootclasspath munging for source compilation. |
79 |
– |
--> |
80 |
– |
|
81 |
– |
<path id="javac.bootclasspath.prepend"> |
82 |
– |
<!-- <pathelement location="${src.dir}"/> --> |
83 |
– |
<pathelement location="${javac.jar}"/> |
84 |
– |
</path> |
85 |
– |
|
86 |
– |
<path id="javac.bootclasspath"> |
87 |
– |
<!-- <pathelement location="${src.dir}"/> --> |
88 |
– |
<pathelement location="${collect.jar}"/> |
89 |
– |
<pathelement location="${rt.jar}"/> |
90 |
– |
</path> |
74 |
|
|
75 |
< |
<!-- Flatten bootclasspath prefix into a platform-appropriate string --> |
76 |
< |
<property name="javac.bootclasspath.prepend" refid="javac.bootclasspath.prepend"/> |
94 |
< |
|
95 |
< |
<!-- Turn the flattened bootclasspath prefix into a javac argument --> |
96 |
< |
<property name="javac.args" value='-J-Xbootclasspath/p:${javac.bootclasspath.prepend}'/> |
97 |
< |
|
98 |
< |
|
99 |
< |
<!-- |
100 |
< |
! Bootclasspath munging for testing, so JUnit can test our local |
101 |
< |
! modifications to java.*. |
102 |
< |
--> |
75 |
> |
<!-- Bootclasspath argument --> |
76 |
> |
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
77 |
|
|
78 |
+ |
<!-- Test classpath --> |
79 |
|
<path id="test.classpath"> |
105 |
– |
<pathelement location="${product.jar}"/> |
80 |
|
<pathelement location="${build.testcases.dir}"/> |
81 |
|
<pathelement location="${junit.jar}"/> |
82 |
|
</path> |
83 |
|
|
84 |
< |
<!-- Flatten test classpath into a platform-appropriate string --> |
85 |
< |
<property name="test.classpath" refid="test.classpath"/> |
86 |
< |
|
87 |
< |
<!-- Turn the flattened test classpath into a javac argument --> |
114 |
< |
<property name="test.javac.args" value='-Xbootclasspath/p:${test.classpath}'/> |
115 |
< |
|
84 |
> |
<!-- ALoops classpath --> |
85 |
> |
<path id="loops.classpath"> |
86 |
> |
<pathelement location="${build.loops.dir}"/> |
87 |
> |
</path> |
88 |
|
|
89 |
|
|
90 |
|
<!-- Main targets --> |
91 |
|
|
92 |
< |
<target name="compile" depends="init" |
92 |
> |
<target name="dists" |
93 |
> |
depends="dist, jsr166xdist, jsr166ydist, extra166ydist" |
94 |
> |
description="Builds all public jars and docs"/> |
95 |
> |
|
96 |
> |
<target name="compile" |
97 |
> |
depends="init, configure-compiler" |
98 |
|
description="Compiles main sources to build folder"> |
99 |
|
|
100 |
|
<mkdir dir="${build.classes.dir}"/> |
107 |
|
source="${build.sourcelevel}" |
108 |
|
fork="true"> |
109 |
|
|
110 |
< |
<bootclasspath refid="javac.bootclasspath"/> |
111 |
< |
<compilerarg line="${javac.args} ${build.warnings.option}"/> |
110 |
> |
<include name="**/*.java"/> |
111 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
112 |
> |
|
113 |
> |
<!-- |
114 |
> |
<exclude name="java/lang/**"/> |
115 |
> |
<compilerarg line="${build.args}"/> |
116 |
> |
<compilerarg line="-Xlint -Xmaxwarns 1000"/> |
117 |
> |
--> |
118 |
|
|
119 |
|
</javac> |
120 |
|
|
121 |
|
</target> |
122 |
|
|
123 |
|
|
141 |
– |
<target name="jar" depends="native-jar, emulation-jar"/> |
142 |
– |
|
143 |
– |
|
144 |
– |
<target name="test" depends="init, check-junit, report-tests" |
145 |
– |
description="Runs all tests (requires JUnit 3.8+ in ${ant.home}/lib)" |
146 |
– |
/> |
124 |
|
|
125 |
+ |
<target name="jar" |
126 |
+ |
depends="compile" |
127 |
+ |
description="Builds library jar from compiled sources"> |
128 |
|
|
129 |
< |
<target name="checkstyle" depends="filter-src" |
150 |
< |
description="Reports on style errors in Java source (verbose, mostly chaff)"> |
151 |
< |
|
152 |
< |
<taskdef resource="checkstyletask.properties" |
153 |
< |
classpath="${lib.dir}/checkstyle-all-2.4.jar"/> |
129 |
> |
<mkdir dir="${build.lib.dir}"/> |
130 |
|
|
131 |
< |
<checkstyle> |
132 |
< |
<formatter type="plain"/> <!-- also available: type="xml" --> |
133 |
< |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
158 |
< |
</checkstyle> |
131 |
> |
<jar destfile="${product.jar}"> |
132 |
> |
<fileset dir="${build.classes.dir}"/> |
133 |
> |
</jar> |
134 |
|
|
135 |
|
</target> |
136 |
|
|
137 |
|
|
163 |
– |
<target name="doccheck" depends="filter-src" |
164 |
– |
description="Reports on javadoc style errors (not working yet)"> |
138 |
|
|
139 |
< |
<delete dir="${build.doccheck.dir}"/> |
140 |
< |
<mkdir dir="${build.doccheck.dir}"/> |
139 |
> |
<target name="test" |
140 |
> |
depends="init, configure-tests, report-tests" |
141 |
> |
description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" /> |
142 |
|
|
169 |
– |
<javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck" |
170 |
– |
docletpath="${lib.dir}/doccheck.jar" |
171 |
– |
destdir="${build.doccheck.dir}"> |
172 |
– |
<packageset dir="${build.filter.src.dir}"/> |
173 |
– |
</javadoc> |
174 |
– |
|
175 |
– |
</target> |
143 |
|
|
144 |
|
|
145 |
< |
<target name="docs" depends="filter-src" |
145 |
> |
<target name="docs" |
146 |
|
description="Builds javadocs with custom tags to build folder"> |
147 |
|
|
148 |
|
<delete dir="${build.javadocs.dir}"/> |
149 |
|
<mkdir dir="${build.javadocs.dir}"/> |
150 |
|
|
151 |
|
<javadoc destdir="${build.javadocs.dir}" |
152 |
< |
link="http://java.sun.com/j2se/1.4.1/docs/api" |
152 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
153 |
|
overview="${src.dir}/intro.html" |
154 |
< |
source="${build.docsourcelevel}"> |
154 |
> |
sourcepath="${src.dir}:${jdksrc.dir}" |
155 |
> |
> |
156 |
|
|
157 |
< |
<tag name="revised" description="Last revised:"/> |
190 |
< |
<tag name="spec" description="Specified by:"/> |
191 |
< |
<tag name="editor" description="Last edited by:"/> |
192 |
< |
<tag name="fixme" description="FIX ME:"/> |
193 |
< |
<packageset dir="${build.filter.src.dir}"/> |
157 |
> |
<packageset dir="${src.dir}"/> |
158 |
|
|
159 |
|
</javadoc> |
160 |
|
|
161 |
|
</target> |
162 |
|
|
163 |
|
|
200 |
– |
<!-- |
201 |
– |
# javac -s doesn't reliably generate compilable code. It generates |
202 |
– |
# bridge methods (marked as "synthetic") that can have identical |
203 |
– |
# signatures to existing methods except for the return value. |
204 |
– |
--> |
205 |
– |
<target name="strip" depends="init"> |
164 |
|
|
165 |
< |
<mkdir dir="${build.stripped.dir}"/> |
166 |
< |
|
167 |
< |
<javac srcdir="${src.dir}" |
210 |
< |
destdir="${build.stripped.dir}" |
211 |
< |
debug="${build.debug}" |
212 |
< |
debuglevel="${build.debuglevel}" |
213 |
< |
deprecation="${build.deprecation}" |
214 |
< |
source="${build.sourcelevel}" |
215 |
< |
fork="true"> |
165 |
> |
<target name="dist" |
166 |
> |
depends="init, dist-clean, dist-jar, dist-docs" |
167 |
> |
description="Puts all distributable products in single hierarchy"/> |
168 |
|
|
217 |
– |
<bootclasspath refid="javac.bootclasspath"/> |
218 |
– |
<compilerarg line="${javac.args} ${build.warnings.option} -s"/> |
169 |
|
|
170 |
< |
</javac> |
170 |
> |
<target name="release" |
171 |
> |
depends="dist" |
172 |
> |
description="Puts entire CVS tree, plus distribution productions, in a jar"> |
173 |
> |
|
174 |
> |
<property name="release.jar" value="dist/jsr166-${version}-dist.jar"/> |
175 |
> |
|
176 |
> |
<jar basedir="${basedir}" destfile="${release.jar}"> |
177 |
> |
<!-- <exclude name="build/**"/> --> |
178 |
> |
<exclude name="${release.jar}"/> |
179 |
> |
<exclude name="user.properties"/> |
180 |
> |
<exclude name="etc/notes/**"/> |
181 |
> |
<exclude name="src/emulation/**"/> |
182 |
> |
<exclude name="**/SyntaxTest.java"/> |
183 |
> |
<exclude name="**/SuperfluousAbstract.java"/> |
184 |
> |
</jar> |
185 |
|
|
186 |
|
</target> |
187 |
|
|
188 |
|
|
225 |
– |
<target name="dist" depends="init, dist-clean, dist-jar, dist-docs" |
226 |
– |
description="Puts all distributable products in single hierarchy"/> |
227 |
– |
|
189 |
|
|
190 |
|
<target name="clean" |
191 |
|
description="Removes all build products"> |
197 |
|
</target> |
198 |
|
|
199 |
|
|
200 |
+ |
|
201 |
|
<target name="dist-clean" |
202 |
|
description="Removes all build and distribution products"> |
203 |
|
|
206 |
|
</target> |
207 |
|
|
208 |
|
|
247 |
– |
<!-- Anthill targets --> |
209 |
|
|
210 |
< |
<!-- Should really run the tests instead of just the jar target --> |
211 |
< |
<target name="anthill-build" depends="jar, test, docs, dist-docs"/> |
210 |
> |
<target name="dist-docs" |
211 |
> |
description="Builds javadocs without custom tags to dist folder"> |
212 |
> |
|
213 |
> |
<delete dir="${dist.javadocs.dir}"/> |
214 |
> |
<mkdir dir="${dist.javadocs.dir}"/> |
215 |
> |
|
216 |
> |
<!-- the packagenames="none" hack below prevents scanning the --> |
217 |
> |
<!-- sourcepath for packages --> |
218 |
> |
|
219 |
> |
<javadoc destdir="${dist.javadocs.dir}" |
220 |
> |
packagenames="none" |
221 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
222 |
> |
overview="${src.dir}/intro.html" |
223 |
> |
sourcepath="${src.dir}:${jdksrc.dir}" > |
224 |
> |
<fileset dir="${src.dir}" defaultexcludes="yes"> |
225 |
> |
<include name="**/*.java"/> |
226 |
> |
</fileset> |
227 |
> |
</javadoc> |
228 |
|
|
252 |
– |
<target name="anthill-publish"> |
253 |
– |
<copy todir="${deployDir}/docs/private"> |
254 |
– |
<fileset dir="${build.javadocs.dir}"/> |
255 |
– |
</copy> |
256 |
– |
<copy todir="${deployDir}/docs/public"> |
257 |
– |
<fileset dir="${dist.javadocs.dir}"/> |
258 |
– |
</copy> |
259 |
– |
<copy tofile="${deployDir}/index.html" |
260 |
– |
file="${basedir}/etc/anthill-index.html"/> |
261 |
– |
<copy todir="${deployDir}/notes"> |
262 |
– |
<fileset dir="${basedir}/etc/notes"/> |
263 |
– |
</copy> |
229 |
|
</target> |
230 |
|
|
231 |
|
|
232 |
+ |
|
233 |
|
<!-- Internal targets --> |
234 |
|
|
269 |
– |
<target name="set-warnings-if" if="build.warnings"> |
235 |
|
|
236 |
< |
<property name="build.warnings.option" value="-warnunchecked"/> |
236 |
> |
<target name="init"> |
237 |
> |
|
238 |
> |
<!-- Version is kept in a separate file --> |
239 |
> |
<loadfile property="version" srcFile="version.properties"/> |
240 |
> |
<echo>Building JSR-166 version ${version}</echo> |
241 |
> |
<echo>java.home is ${java.home}</echo> |
242 |
|
|
243 |
|
</target> |
244 |
|
|
245 |
|
|
246 |
< |
<target name="set-warnings-unless" unless="build.warnings"> |
246 |
> |
<target name="dist-jar" |
247 |
> |
depends="clean, jar"> |
248 |
|
|
249 |
< |
<property name="build.warnings.option" value=""/> |
249 |
> |
<copy file="${product.jar}" todir="${dist.dir}"/> |
250 |
|
|
251 |
|
</target> |
252 |
|
|
253 |
|
|
254 |
< |
<target name="init" depends="set-warnings-if, set-warnings-unless"> |
254 |
> |
<target name="compile-tests" |
255 |
> |
depends="jar"> |
256 |
|
|
257 |
< |
<!-- Version is kept in a separate file --> |
258 |
< |
<loadfile property="version" srcFile="version.properties"/> |
259 |
< |
<echo>Building JSR-166 version ${version}</echo> |
257 |
> |
<mkdir dir="${build.testcases.dir}"/> |
258 |
> |
|
259 |
> |
<javac srcdir="${tck.src.dir}" |
260 |
> |
destdir="${build.testcases.dir}" |
261 |
> |
debug="${build.debug}" |
262 |
> |
debuglevel="${build.debuglevel}" |
263 |
> |
deprecation="${build.deprecation}" |
264 |
> |
source="${build.sourcelevel}" |
265 |
> |
fork="true"> |
266 |
> |
|
267 |
> |
<compilerarg value="${bootclasspath.args}"/> |
268 |
> |
<compilerarg line="${build.args}"/> |
269 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
270 |
> |
|
271 |
> |
<classpath refid="test.classpath"/> |
272 |
> |
|
273 |
> |
</javac> |
274 |
> |
|
275 |
> |
<javac srcdir="${test.src.dir}" |
276 |
> |
destdir="${build.testcases.dir}" |
277 |
> |
debug="${build.debug}" |
278 |
> |
debuglevel="${build.debuglevel}" |
279 |
> |
deprecation="${build.deprecation}" |
280 |
> |
source="${build.sourcelevel}" |
281 |
> |
fork="true"> |
282 |
> |
|
283 |
> |
<include name="jsr166/test/**"/> |
284 |
> |
|
285 |
> |
<compilerarg value="${bootclasspath.args}"/> |
286 |
> |
<compilerarg line="${build.args}"/> |
287 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
288 |
> |
|
289 |
> |
<classpath refid="test.classpath"/> |
290 |
> |
|
291 |
> |
</javac> |
292 |
> |
|
293 |
> |
<!-- |
294 |
> |
<javac srcdir="${jtreg.src.dir}" |
295 |
> |
destdir="${build.testcases.dir}" |
296 |
> |
debug="${build.debug}" |
297 |
> |
debuglevel="${build.debuglevel}" |
298 |
> |
deprecation="${build.deprecation}" |
299 |
> |
source="${build.sourcelevel}" |
300 |
> |
fork="true"> |
301 |
> |
|
302 |
> |
<compilerarg value="${bootclasspath.args}"/> |
303 |
> |
<compilerarg line="${build.args}"/> |
304 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
305 |
> |
|
306 |
> |
<classpath refid="test.classpath"/> |
307 |
> |
|
308 |
> |
</javac> |
309 |
> |
--> |
310 |
|
|
311 |
|
</target> |
312 |
|
|
313 |
|
|
314 |
< |
<target name="native-jar" depends="compile" |
315 |
< |
description="Builds library jar from compiled sources"> |
314 |
> |
<target name="run-tests" |
315 |
> |
depends="compile-tests"> |
316 |
|
|
317 |
< |
<mkdir dir="${build.lib.dir}"/> |
317 |
> |
<!-- May be overridden by user.properties --> |
318 |
> |
<property name="testcase" value="*"/> |
319 |
|
|
320 |
< |
<jar destfile="${product.jar}"> |
321 |
< |
<fileset dir="${build.classes.dir}"/> |
322 |
< |
</jar> |
320 |
> |
<mkdir dir="${build.reports.dir}"/> |
321 |
> |
|
322 |
> |
<junit printsummary="true" |
323 |
> |
showoutput="true" |
324 |
> |
errorProperty="junit.failed" |
325 |
> |
failureProperty="junit.failed" |
326 |
> |
dir="${build.reports.dir}" |
327 |
> |
fork="true"> |
328 |
> |
|
329 |
> |
<jvmarg value="${bootclasspath.args}"/> |
330 |
> |
<jvmarg value="-server"/> |
331 |
> |
<jvmarg value="-showversion"/> |
332 |
> |
|
333 |
> |
<classpath refid="test.classpath"/> |
334 |
> |
|
335 |
> |
<formatter type="xml"/> |
336 |
> |
|
337 |
> |
<batchtest todir="${build.reports.dir}" unless="no.test.tck"> |
338 |
> |
<fileset dir="${tck.src.dir}"> |
339 |
> |
<include name="**/${testcase}Test.java"/> |
340 |
> |
</fileset> |
341 |
> |
</batchtest> |
342 |
> |
|
343 |
> |
<batchtest todir="${build.reports.dir}" if="do.test.old"> |
344 |
> |
<fileset dir="${test.src.dir}"> |
345 |
> |
<include name="jsr166/test/**/${testcase}Test.java"/> |
346 |
> |
</fileset> |
347 |
> |
</batchtest> |
348 |
> |
|
349 |
> |
<!-- |
350 |
> |
<batchtest todir="${build.reports.dir}" if="do.test.jtreg"> |
351 |
> |
<fileset dir="${jtreg.src.dir}"> |
352 |
> |
<include name="**/${testcase}Test.java"/> |
353 |
> |
</fileset> |
354 |
> |
</batchtest> |
355 |
> |
--> |
356 |
> |
|
357 |
> |
</junit> |
358 |
> |
|
359 |
> |
</target> |
360 |
> |
|
361 |
> |
|
362 |
> |
<target name="report-tests" |
363 |
> |
depends="run-tests"> |
364 |
> |
|
365 |
> |
<!-- Sets junit.report.format to frames if redirection is present, |
366 |
> |
otherwise sets it to noframes. --> |
367 |
> |
<available property="junit.report.format" |
368 |
> |
value="frames" |
369 |
> |
classname="org.apache.xalan.lib.Redirect" |
370 |
> |
/> |
371 |
> |
<property name="junit.report.format" value="noframes"/> |
372 |
> |
|
373 |
> |
<junitreport todir="${build.reports.dir}"> |
374 |
> |
<fileset dir="${build.reports.dir}"> |
375 |
> |
<include name="TEST-*.xml"/> |
376 |
> |
</fileset> |
377 |
> |
<report format="${junit.report.format}" todir="${build.reports.dir}" |
378 |
> |
/> |
379 |
> |
</junitreport> |
380 |
> |
|
381 |
> |
<fail message="Test Cases Failed" if="junit.failed"/> |
382 |
> |
|
383 |
> |
</target> |
384 |
> |
|
385 |
> |
|
386 |
> |
<target name="configure-compiler"> |
387 |
> |
|
388 |
> |
<property name="unchecked.option" value="-Xlint:unchecked"/> |
389 |
> |
|
390 |
> |
<condition property="warnunchecked.arg" value="${unchecked.option}"> |
391 |
> |
<istrue value="${build.warnunchecked}"/> |
392 |
> |
</condition> |
393 |
> |
|
394 |
> |
<property name="warnunchecked.arg" value=""/> |
395 |
> |
|
396 |
> |
|
397 |
> |
<!-- Common options in javac invocations --> |
398 |
> |
<property name="build.args" value="${warnunchecked.arg}"/> |
399 |
> |
|
400 |
> |
</target> |
401 |
> |
|
402 |
> |
|
403 |
> |
<target name="configure-tests" |
404 |
> |
depends="configure-compiler"> |
405 |
> |
|
406 |
> |
<!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 --> |
407 |
> |
<available property="junit.available" |
408 |
> |
classname="junit.framework.Protectable"/> |
409 |
> |
|
410 |
> |
<!-- Xalan --> |
411 |
> |
<available property="xalan.available" |
412 |
> |
classname="org.apache.xalan.Version"/> |
413 |
> |
|
414 |
> |
|
415 |
> |
<!-- Ant 1.6beta and later don't need or want this check --> |
416 |
> |
<!-- |
417 |
> |
<fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests" |
418 |
> |
unless="junit.available"/> |
419 |
> |
|
420 |
> |
<fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests" |
421 |
> |
unless="xalan.available"/> |
422 |
> |
--> |
423 |
> |
|
424 |
> |
</target> |
425 |
> |
|
426 |
> |
|
427 |
> |
<!-- Various demos and test programs --> |
428 |
> |
|
429 |
> |
|
430 |
> |
<target name="loops" depends="init, configure-compiler" |
431 |
> |
description="Benchmark from Doug Lea's AQS paper"> |
432 |
> |
|
433 |
> |
<mkdir dir="${build.loops.dir}"/> |
434 |
> |
|
435 |
> |
<javac srcdir="${loops.src.dir}" |
436 |
> |
destdir="${build.loops.dir}" |
437 |
> |
debug="${build.debug}" |
438 |
> |
debuglevel="${build.debuglevel}" |
439 |
> |
deprecation="${build.deprecation}" |
440 |
> |
source="${build.sourcelevel}" |
441 |
> |
fork="true"> |
442 |
> |
|
443 |
> |
<compilerarg line="${build.args}"/> |
444 |
> |
<classpath refid="loops.classpath"/> |
445 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
446 |
> |
|
447 |
> |
</javac> |
448 |
> |
|
449 |
> |
<java classname="ALoops" fork="true"> |
450 |
> |
<classpath refid="loops.classpath"/> |
451 |
> |
</java> |
452 |
|
|
453 |
|
</target> |
454 |
|
|
455 |
|
|
456 |
< |
<target name="compile-emulation" depends="init" |
457 |
< |
if="build.emulation" |
458 |
< |
description="Compiles emulation sources to build folder"> |
456 |
> |
<!-- jsr166x --> |
457 |
> |
|
458 |
> |
|
459 |
> |
<target name="jsr166xcompile" |
460 |
> |
depends="init, configure-compiler" |
461 |
> |
description="Compiles jsr166x sources"> |
462 |
|
|
463 |
< |
<mkdir dir="${build.emulation.dir}"/> |
463 |
> |
<mkdir dir="${build.jsr166x.dir}"/> |
464 |
|
|
465 |
< |
<javac srcdir="${emulation.src.dir}" |
466 |
< |
destdir="${build.emulation.dir}" |
465 |
> |
<javac srcdir="${jsr166xsrc.dir}" |
466 |
> |
destdir="${build.jsr166x.dir}" |
467 |
|
debug="${build.debug}" |
468 |
|
debuglevel="${build.debuglevel}" |
469 |
|
deprecation="${build.deprecation}" |
470 |
|
source="${build.sourcelevel}" |
471 |
|
fork="true"> |
472 |
|
|
473 |
< |
<bootclasspath refid="javac.bootclasspath"/> |
474 |
< |
<compilerarg line="${javac.args} ${build.warnings.option}"/> |
473 |
> |
<include name="**/*.java"/> |
474 |
> |
<compilerarg line="${build.args}"/> |
475 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
476 |
|
|
477 |
|
</javac> |
478 |
|
|
479 |
|
</target> |
480 |
|
|
481 |
|
|
326 |
– |
<target name="emulation-jar" depends="native-jar, compile-emulation" |
327 |
– |
if="build.emulation"> |
482 |
|
|
483 |
< |
<jar destfile="${product.jar}" update="true" duplicate="add"> |
484 |
< |
<fileset dir="${build.emulation.dir}"/> |
483 |
> |
<target name="jsr166xjar" |
484 |
> |
depends="jsr166xcompile" |
485 |
> |
description="Builds library jar from compiled sources"> |
486 |
> |
|
487 |
> |
<mkdir dir="${build.jsr166xlib.dir}"/> |
488 |
> |
|
489 |
> |
<jar destfile="${jsr166xproduct.jar}"> |
490 |
> |
<fileset dir="${build.jsr166x.dir}"/> |
491 |
|
</jar> |
492 |
|
|
493 |
|
</target> |
494 |
|
|
495 |
|
|
336 |
– |
<target name="dist-jar" depends="clean, jar"> |
496 |
|
|
497 |
< |
<copy file="${product.jar}" todir="${dist.dir}"/> |
497 |
> |
<target name="jsr166xdocs" |
498 |
> |
description="Builds javadocs with custom tags to build folder"> |
499 |
> |
|
500 |
> |
<delete dir="${build.jsr166xjavadocs.dir}"/> |
501 |
> |
<mkdir dir="${build.jsr166xjavadocs.dir}"/> |
502 |
> |
|
503 |
> |
<javadoc destdir="${build.jsr166xjavadocs.dir}" |
504 |
> |
packagenames="jsr166x" |
505 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
506 |
> |
source="${build.sourcelevel}" |
507 |
> |
sourcepath="${topsrc.dir}:${jdksrc.dir}" /> |
508 |
|
|
509 |
|
</target> |
510 |
|
|
511 |
|
|
512 |
< |
<target name="dist-docs" depends="filter-src" |
512 |
> |
<target name="jsr166xdist" |
513 |
> |
depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs" |
514 |
> |
description="Puts all distributable products in single hierarchy"/> |
515 |
> |
|
516 |
> |
|
517 |
> |
|
518 |
> |
<target name="jsr166xclean" |
519 |
> |
description="Removes all build products"> |
520 |
> |
|
521 |
> |
<delete dir="${build.jsr166x.dir}"/> |
522 |
> |
<delete dir="${build.jsr166xlib.dir}"/> |
523 |
> |
|
524 |
> |
</target> |
525 |
> |
|
526 |
> |
|
527 |
> |
|
528 |
> |
<target name="jsr166xdist-clean" |
529 |
> |
description="Removes all build and distribution products"> |
530 |
> |
|
531 |
> |
</target> |
532 |
> |
|
533 |
> |
|
534 |
> |
|
535 |
> |
<target name="jsr166xdist-docs" |
536 |
|
description="Builds javadocs without custom tags to dist folder"> |
537 |
|
|
538 |
< |
<delete dir="${dist.javadocs.dir}"/> |
539 |
< |
<mkdir dir="${dist.javadocs.dir}"/> |
538 |
> |
<delete dir="${dist.jsr166xjavadocs.dir}"/> |
539 |
> |
<mkdir dir="${dist.jsr166xjavadocs.dir}"/> |
540 |
|
|
541 |
< |
<javadoc destdir="${dist.javadocs.dir}" |
542 |
< |
link="http://java.sun.com/j2se/1.4.1/docs/api" |
543 |
< |
overview="${src.dir}/intro.html" |
544 |
< |
source="${build.docsourcelevel}"> |
541 |
> |
<javadoc destdir="${dist.jsr166xjavadocs.dir}" |
542 |
> |
packagenames="jsr166x" |
543 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
544 |
> |
source="${build.sourcelevel}" |
545 |
> |
sourcepath="${topsrc.dir}:${jdksrc.dir}" /> |
546 |
|
|
547 |
< |
<packageset dir="${build.filter.src.dir}"/> |
547 |
> |
</target> |
548 |
|
|
549 |
< |
</javadoc> |
549 |
> |
<target name="jsr166xdist-jar" |
550 |
> |
depends="jsr166xclean, jsr166xjar"> |
551 |
> |
|
552 |
> |
<copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/> |
553 |
|
|
554 |
|
</target> |
555 |
|
|
556 |
+ |
<!-- jsr166y --> |
557 |
|
|
361 |
– |
<target name="compile-ant-filter" depends="init"> |
558 |
|
|
559 |
< |
<mkdir dir="${build.ant.dir}"/> |
559 |
> |
<target name="jsr166ycompile" |
560 |
> |
depends="init, configure-compiler" |
561 |
> |
description="Compiles jsr166y sources"> |
562 |
|
|
563 |
< |
<javac srcdir="${ant.src.dir}" |
564 |
< |
destdir="${build.ant.dir}" |
565 |
< |
source="1.4" |
566 |
< |
/> |
563 |
> |
<mkdir dir="${build.jsr166y.dir}"/> |
564 |
> |
|
565 |
> |
<javac srcdir="${jsr166ysrc.dir}" |
566 |
> |
destdir="${build.jsr166y.dir}" |
567 |
> |
debug="${build.debug}" |
568 |
> |
debuglevel="${build.debuglevel}" |
569 |
> |
deprecation="${build.deprecation}" |
570 |
> |
source="${build.sourcelevel}" |
571 |
> |
fork="true"> |
572 |
> |
|
573 |
> |
<include name="**/*.java"/> |
574 |
> |
<compilerarg line="${build.args}"/> |
575 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
576 |
> |
<compilerarg value="${bootclasspath.args}"/> |
577 |
> |
|
578 |
> |
<!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> --> |
579 |
> |
|
580 |
> |
</javac> |
581 |
|
|
582 |
|
</target> |
583 |
|
|
584 |
|
|
373 |
– |
<target name="filter-src" depends="compile-ant-filter"> |
585 |
|
|
586 |
< |
<mkdir dir="${build.filter.src.dir}"/> |
586 |
> |
<target name="jsr166yjar" |
587 |
> |
depends="jsr166ycompile" |
588 |
> |
description="Builds library jar from compiled sources"> |
589 |
|
|
590 |
< |
<copy todir="${build.filter.src.dir}"> |
591 |
< |
<fileset dir="${src.dir}"> |
592 |
< |
<include name="**/*.java"/> |
593 |
< |
<exclude name="**/Random.java"/> |
594 |
< |
<exclude name="**/Unsafe.java"/> |
382 |
< |
</fileset> |
383 |
< |
<filterchain> |
384 |
< |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
385 |
< |
classpath="${build.ant.dir}"> |
386 |
< |
<!-- |
387 |
< |
# These arguments are to get rid of angle-bracketed type |
388 |
< |
# parameters so that javadoc can run on the result. The |
389 |
< |
# following heuristic that seems to work: |
390 |
< |
# |
391 |
< |
# For all lines not starting with space(s)-asterisk-space(s), |
392 |
< |
# replace <something> with a space, where there may be more |
393 |
< |
# than one right angle bracket at the end, and "something" |
394 |
< |
# must not contain parens or pipes. (This may need some |
395 |
< |
# tweaking.) |
396 |
< |
--> |
397 |
< |
<param name="notmatching" value="^\s+\*\s.*$"/> |
398 |
< |
<param name="pattern" value="<[^|>()]+?>+"/> |
399 |
< |
<param name="replacement" value=" "/> |
400 |
< |
</filterreader> |
401 |
< |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
402 |
< |
classpath="${build.ant.dir}"> |
403 |
< |
<!-- |
404 |
< |
# These arguments are to uncomment lines beginning with |
405 |
< |
# "//@" so that javadoc can see imports that are needed |
406 |
< |
# to resolve links but that shouldn't be in the compiled |
407 |
< |
# code. |
408 |
< |
--> |
409 |
< |
<param name="matching" value="^//@.*$"/> |
410 |
< |
<param name="pattern" value="^//@"/> |
411 |
< |
<param name="replacement" value=""/> |
412 |
< |
</filterreader> |
413 |
< |
</filterchain> |
414 |
< |
</copy> |
590 |
> |
<mkdir dir="${build.jsr166ylib.dir}"/> |
591 |
> |
|
592 |
> |
<jar destfile="${jsr166yproduct.jar}" index="true"> |
593 |
> |
<fileset dir="${build.jsr166y.dir}"/> |
594 |
> |
</jar> |
595 |
|
|
596 |
|
</target> |
597 |
|
|
598 |
|
|
419 |
– |
<target name="compile-tests" depends="jar"> |
599 |
|
|
600 |
< |
<mkdir dir="${build.testcases.dir}"/> |
600 |
> |
<target name="jsr166ydocs" |
601 |
> |
description="Builds javadocs with custom tags to build folder"> |
602 |
|
|
603 |
< |
<javac srcdir="${test.src.dir}" |
604 |
< |
destdir="${build.testcases.dir}" |
603 |
> |
<delete dir="${build.jsr166yjavadocs.dir}"/> |
604 |
> |
<mkdir dir="${build.jsr166yjavadocs.dir}"/> |
605 |
> |
|
606 |
> |
<javadoc destdir="${build.jsr166yjavadocs.dir}" |
607 |
> |
packagenames="jsr166y" |
608 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
609 |
> |
source="${build.sourcelevel}" |
610 |
> |
sourcepath="${topsrc.dir}:${jdksrc.dir}" /> |
611 |
> |
|
612 |
> |
</target> |
613 |
> |
|
614 |
> |
|
615 |
> |
<target name="jsr166ydist" |
616 |
> |
depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs" |
617 |
> |
description="Puts all distributable products in single hierarchy"/> |
618 |
> |
|
619 |
> |
|
620 |
> |
|
621 |
> |
<target name="jsr166yclean" |
622 |
> |
description="Removes all build products"> |
623 |
> |
|
624 |
> |
<delete dir="${build.jsr166y.dir}"/> |
625 |
> |
<delete dir="${build.jsr166ylib.dir}"/> |
626 |
> |
|
627 |
> |
</target> |
628 |
> |
|
629 |
> |
|
630 |
> |
|
631 |
> |
<target name="jsr166ydist-clean" |
632 |
> |
description="Removes all build and distribution products"> |
633 |
> |
|
634 |
> |
</target> |
635 |
> |
|
636 |
> |
<target name="jsr166ydist-docs" |
637 |
> |
description="Builds javadocs without custom tags to dist folder"> |
638 |
> |
|
639 |
> |
<delete dir="${dist.jsr166yjavadocs.dir}"/> |
640 |
> |
<mkdir dir="${dist.jsr166yjavadocs.dir}"/> |
641 |
> |
|
642 |
> |
<javadoc destdir="${dist.jsr166yjavadocs.dir}" |
643 |
> |
packagenames="jsr166y" |
644 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
645 |
> |
source="${build.sourcelevel}" |
646 |
> |
sourcepath="${topsrc.dir}:${jdksrc.dir}" /> |
647 |
> |
|
648 |
> |
</target> |
649 |
> |
|
650 |
> |
<target name="jsr166ydist-jar" |
651 |
> |
depends="jsr166yclean, jsr166yjar"> |
652 |
> |
|
653 |
> |
<copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/> |
654 |
> |
|
655 |
> |
</target> |
656 |
> |
|
657 |
> |
<!-- extra166y --> |
658 |
> |
|
659 |
> |
|
660 |
> |
<target name="extra166ycompile" |
661 |
> |
depends="init, configure-compiler, jsr166ycompile" |
662 |
> |
description="Compiles extra166y sources"> |
663 |
> |
|
664 |
> |
<mkdir dir="${build.extra166y.dir}"/> |
665 |
> |
|
666 |
> |
<javac srcdir="${extra166ysrc.dir}" |
667 |
> |
destdir="${build.extra166y.dir}" |
668 |
|
debug="${build.debug}" |
669 |
+ |
classpath="${jsr166yproduct.jar}" |
670 |
|
debuglevel="${build.debuglevel}" |
671 |
|
deprecation="${build.deprecation}" |
672 |
|
source="${build.sourcelevel}" |
673 |
|
fork="true"> |
674 |
|
|
675 |
< |
<bootclasspath refid="javac.bootclasspath"/> |
676 |
< |
<compilerarg line="${javac.args} ${build.warnings.option}"/> |
677 |
< |
<classpath refid="test.classpath"/> |
675 |
> |
<include name="**/*.java"/> |
676 |
> |
<compilerarg line="${build.args}"/> |
677 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
678 |
> |
<compilerarg value="${bootclasspath.args}"/> |
679 |
> |
|
680 |
> |
<!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> --> |
681 |
|
|
682 |
|
</javac> |
683 |
|
|
684 |
|
</target> |
685 |
|
|
686 |
|
|
440 |
– |
<target name="run-tests" depends="compile-tests"> |
687 |
|
|
688 |
< |
<!-- May be overridden by user.properties --> |
689 |
< |
<property name="testcase" value="*"/> |
688 |
> |
<target name="extra166yjar" |
689 |
> |
depends="extra166ycompile" |
690 |
> |
description="Builds library jar from compiled sources"> |
691 |
|
|
692 |
< |
<mkdir dir="${build.reports.dir}"/> |
692 |
> |
<mkdir dir="${build.extra166ylib.dir}"/> |
693 |
|
|
694 |
< |
<junit printsummary="true" |
695 |
< |
showoutput="true" |
696 |
< |
errorProperty="junit.failed" |
450 |
< |
failureProperty="junit.failed" |
451 |
< |
dir="${build.reports.dir}" |
452 |
< |
fork="true"> |
694 |
> |
<jar destfile="${extra166yproduct.jar}" index="true"> |
695 |
> |
<fileset dir="${build.extra166y.dir}"/> |
696 |
> |
</jar> |
697 |
|
|
698 |
< |
<jvmarg value="${test.javac.args}"/> |
698 |
> |
</target> |
699 |
|
|
456 |
– |
<formatter type="xml"/> |
700 |
|
|
458 |
– |
<batchtest todir="${build.reports.dir}"> |
459 |
– |
<fileset dir="${test.src.dir}"> |
460 |
– |
<include name="**/${testcase}Test.java"/> |
461 |
– |
</fileset> |
462 |
– |
</batchtest> |
701 |
|
|
702 |
< |
</junit> |
702 |
> |
<target name="extra166ydocs" |
703 |
> |
description="Builds javadocs with custom tags to build folder"> |
704 |
> |
|
705 |
> |
<delete dir="${build.extra166yjavadocs.dir}"/> |
706 |
> |
<mkdir dir="${build.extra166yjavadocs.dir}"/> |
707 |
> |
|
708 |
> |
<javadoc destdir="${build.extra166yjavadocs.dir}" |
709 |
> |
packagenames="extra166y" |
710 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
711 |
> |
source="${build.sourcelevel}" |
712 |
> |
sourcepath="${topsrc.dir}:${jdksrc.dir}" /> |
713 |
|
|
714 |
|
</target> |
715 |
|
|
716 |
|
|
717 |
< |
<target name="report-tests" depends="run-tests"> |
718 |
< |
<!-- Sets junit.report.format to frames if Xalan is present, |
719 |
< |
otherwise sets it to noframes. --> |
472 |
< |
<available property="junit.report.format" |
473 |
< |
value="frames" |
474 |
< |
classname="org.apache.xalan.lib.Redirect" |
475 |
< |
/> |
476 |
< |
<property name="junit.report.format" value="noframes"/> |
717 |
> |
<target name="extra166ydist" |
718 |
> |
depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs" |
719 |
> |
description="Puts all distributable products in single hierarchy"/> |
720 |
|
|
478 |
– |
<junitreport todir="${build.reports.dir}"> |
479 |
– |
<fileset dir="${build.reports.dir}"> |
480 |
– |
<include name="TEST-*.xml"/> |
481 |
– |
</fileset> |
482 |
– |
<report styledir="${stylesheet.dir}" |
483 |
– |
format="${junit.report.format}" |
484 |
– |
todir="${build.reports.dir}" |
485 |
– |
/> |
486 |
– |
</junitreport> |
721 |
|
|
722 |
< |
<fail message="Test Cases Failed" if="junit.failed"/> |
722 |
> |
|
723 |
> |
<target name="extra166yclean" |
724 |
> |
description="Removes all build products"> |
725 |
> |
|
726 |
> |
<delete dir="${build.extra166y.dir}"/> |
727 |
> |
<delete dir="${build.extra166ylib.dir}"/> |
728 |
> |
|
729 |
|
</target> |
730 |
|
|
731 |
|
|
732 |
< |
<target name="check-junit"> |
733 |
< |
<!-- FIXME: this test isn't specific enough --> |
734 |
< |
<available property="junit.available" |
735 |
< |
classname="junit.framework.TestCase"/> |
736 |
< |
<fail message="Need JUnit 3.8 to run tests" unless="junit.available"/> |
732 |
> |
|
733 |
> |
<target name="extra166ydist-clean" |
734 |
> |
description="Removes all build and distribution products"> |
735 |
> |
|
736 |
> |
</target> |
737 |
> |
|
738 |
> |
<target name="extra166ydist-docs" |
739 |
> |
description="Builds javadocs without custom tags to dist folder"> |
740 |
> |
|
741 |
> |
<delete dir="${dist.extra166yjavadocs.dir}"/> |
742 |
> |
<mkdir dir="${dist.extra166yjavadocs.dir}"/> |
743 |
> |
|
744 |
> |
<javadoc destdir="${dist.extra166yjavadocs.dir}" |
745 |
> |
packagenames="extra166y" |
746 |
> |
link="http://download.oracle.com/javase/7/docs/api/" |
747 |
> |
source="${build.sourcelevel}" |
748 |
> |
sourcepath="${topsrc.dir}:${jdksrc.dir}" /> |
749 |
> |
|
750 |
|
</target> |
751 |
|
|
752 |
+ |
<target name="extra166ydist-jar" |
753 |
+ |
depends="extra166yclean, extra166yjar"> |
754 |
+ |
|
755 |
+ |
<copy file="${extra166yproduct.jar}" todir="${dist.dir}"/> |
756 |
+ |
|
757 |
+ |
</target> |
758 |
|
|
759 |
|
</project> |