8 |
|
|
9 |
|
User-specific settings are read from user.properties. |
10 |
|
See user.properties.sample for an explanation of some useful settings. |
11 |
+ |
|
12 |
+ |
The repository contains all dependencies except for ant and the JDK |
13 |
+ |
itself. Because the JDK version matters and because different |
14 |
+ |
targets require different JDKs, we assume that users have created a |
15 |
+ |
hierarchy containing: |
16 |
+ |
$HOME/jdk/jdk6 |
17 |
+ |
$HOME/jdk/jdk7 |
18 |
+ |
$HOME/jdk/jdk8 |
19 |
+ |
where each of the above is a JDK or a symlink to same, and |
20 |
+ |
$HOME/jdk/src/jdk6 |
21 |
+ |
$HOME/jdk/src/jdk7 |
22 |
+ |
$HOME/jdk/src/jdk8 |
23 |
+ |
where each of the above is a complete JDK source tree |
24 |
+ |
(e.g. mercurial forest) or a symlink to same. |
25 |
|
------------------------------------------------------------------------------ |
26 |
|
</description> |
27 |
|
|
35 |
|
|
36 |
|
|
37 |
|
<!-- Compilation options --> |
38 |
< |
<property name="build.sourcelevel" value="1.5"/> |
25 |
< |
<property name="build.docsourcelevel" value="1.4"/> |
38 |
> |
<property name="build.sourcelevel" value="1.6"/> |
39 |
|
<property name="build.debug" value="true"/> |
40 |
|
<property name="build.debuglevel" value="source,lines,vars"/> |
41 |
|
<property name="build.deprecation" value="false"/> |
42 |
|
|
43 |
|
<!-- Build locations --> |
44 |
< |
<property name="build.dir" location="build"/> |
45 |
< |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
46 |
< |
<property name="build.emulation.dir" location="${build.dir}/emulation"/> |
47 |
< |
<property name="build.testcases.dir" location="${build.dir}/testcases"/> |
48 |
< |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
49 |
< |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
50 |
< |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
51 |
< |
<property name="build.sinjdocs.dir" location="${build.dir}/sinjdocs"/> |
52 |
< |
<property name="build.stripped.dir" location="${build.dir}/stripped"/> |
53 |
< |
<property name="build.reports.dir" location="${build.dir}/reports"/> |
54 |
< |
<property name="build.doccheck.dir" location="${build.dir}/doccheck"/> |
55 |
< |
<property name="build.filter.src.dir" location="${build.dir}/filtersrc"/> |
56 |
< |
<property name="build.filter.doccheck.dir" location="${build.dir}/filterdocchk"/> |
44 |
> |
<property name="build.dir" location="build"/> |
45 |
> |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
46 |
> |
<property name="build.testcases.dir" location="${build.dir}/testcases"/> |
47 |
> |
<property name="build.loops.dir" location="${build.dir}/loops"/> |
48 |
> |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
49 |
> |
<property name="build.reports.dir" location="${build.dir}/reports"/> |
50 |
> |
|
51 |
> |
<property name="build.4jdk7.dir" location="${build.dir}/4jdk7"/> |
52 |
> |
<property name="build.4jdk7.lib.dir" location="${build.4jdk7.dir}"/> |
53 |
> |
<property name="build.4jdk7.classes.dir" location="${build.4jdk7.dir}/classes"/> |
54 |
> |
<property name="build.4jdk7.tck.classes.dir" location="${build.4jdk7.dir}/tck/classes"/> |
55 |
> |
<property name="build.4jdk7.docs.dir" location="${build.4jdk7.dir}/docs"/> |
56 |
> |
|
57 |
> |
<property name="build.jsr166x.dir" location="${build.dir}/jsr166x"/> |
58 |
> |
<property name="build.jsr166xlib.dir" location="${build.dir}/jsr166xlib"/> |
59 |
> |
|
60 |
> |
<property name="build.jsr166y.dir" location="${build.dir}/jsr166y"/> |
61 |
> |
<property name="build.jsr166ylib.dir" location="${build.dir}/jsr166ylib"/> |
62 |
> |
|
63 |
> |
<property name="build.jsr166e.dir" location="${build.dir}/jsr166e"/> |
64 |
> |
<property name="build.jsr166elib.dir" location="${build.dir}/jsr166elib"/> |
65 |
> |
|
66 |
> |
<property name="build.extra166y.dir" location="${build.dir}/extra166y"/> |
67 |
> |
<property name="build.extra166ylib.dir" location="${build.dir}/extra166ylib"/> |
68 |
> |
|
69 |
> |
<!-- JDK binary locations --> |
70 |
> |
<property name="jdks.home" location="${user.home}/jdk"/> |
71 |
> |
|
72 |
> |
<macrodef name="defjdklocations"> |
73 |
> |
<attribute name="v"/> |
74 |
> |
<sequential> |
75 |
> |
<property name="jdk@{v}.home" location="${jdks.home}/jdk@{v}"/> |
76 |
> |
<property name="java@{v}" location="${jdk@{v}.home}/bin/java"/> |
77 |
> |
<property name="javac@{v}" location="${jdk@{v}.home}/bin/javac"/> |
78 |
> |
<property name="javadoc@{v}" location="${jdk@{v}.home}/bin/javadoc"/> |
79 |
> |
<property name="bootdir@{v}" location="${jdk@{v}.home}/jre/lib"/> |
80 |
> |
<property name="jdk@{v}src.dir" location="${jdks.home}/src/jdk@{v}/jdk/src/share/classes"/> |
81 |
> |
<property name="bootclasspath@{v}" |
82 |
> |
value="${bootdir@{v}}/resources.jar:${bootdir@{v}}/rt.jar:${bootdir@{v}}/jsse.jar:${bootdir@{v}}/jce.jar:${bootdir@{v}}/:${bootdir@{v}}/charsets.jar"/> |
83 |
> |
</sequential> |
84 |
> |
</macrodef> |
85 |
> |
|
86 |
> |
<defjdklocations v="6"/> |
87 |
> |
<defjdklocations v="7"/> |
88 |
> |
<defjdklocations v="8"/> |
89 |
> |
|
90 |
> |
<macrodef name="run-tck-tests"> |
91 |
> |
<attribute name="jvm"/> |
92 |
> |
<attribute name="tck.classes"/> |
93 |
> |
<attribute name="product.jar" default="${product.jar}"/> |
94 |
> |
<attribute name="jvmflags" default=""/> |
95 |
> |
<sequential> |
96 |
> |
<java classname="JSR166TestCase" |
97 |
> |
jvm="@{jvm}" fork="true"> |
98 |
> |
<jvmarg value="-Xbootclasspath/p:@{product.jar}"/> |
99 |
> |
<jvmarg line="@{jvmflags}"/> |
100 |
> |
<classpath> |
101 |
> |
<pathelement location="${junit.jar}"/> |
102 |
> |
<pathelement location="@{tck.classes}"/> |
103 |
> |
</classpath> |
104 |
> |
</java> |
105 |
> |
</sequential> |
106 |
> |
</macrodef> |
107 |
|
|
108 |
|
<!-- Source locations --> |
109 |
|
<property name="src.dir" location="${basedir}/src/main"/> |
47 |
– |
<property name="emulation.src.dir" location="${basedir}/src/emulation"/> |
110 |
|
<property name="test.src.dir" location="${basedir}/src/test"/> |
111 |
< |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
112 |
< |
<property name="stylesheet.dir" location="${basedir}/etc/xsl"/> |
111 |
> |
<property name="loops.src.dir" location="${basedir}/src/loops"/> |
112 |
> |
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
113 |
> |
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
114 |
|
<property name="lib.dir" location="${basedir}/lib"/> |
115 |
|
<property name="dist.dir" location="${basedir}/dist"/> |
116 |
+ |
<property name="topsrc.dir" location="${basedir}/src"/> |
117 |
+ |
<property name="4jdk7src.dir" location="${topsrc.dir}/jdk7"/> |
118 |
+ |
<property name="jsr166xsrc.dir" location="${topsrc.dir}/jsr166x"/> |
119 |
+ |
<property name="jsr166ysrc.dir" location="${topsrc.dir}/jsr166y"/> |
120 |
+ |
<property name="jsr166esrc.dir" location="${topsrc.dir}/jsr166e"/> |
121 |
+ |
<property name="extra166ysrc.dir" location="${topsrc.dir}/extra166y"/> |
122 |
+ |
<property name="jdksrc.dir" location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/> |
123 |
|
|
124 |
|
<!-- Distribution locations --> |
125 |
< |
<property name="dist.javadocs.dir" location="${dist.dir}/docs"/> |
125 |
> |
<property name="dist.javadocs.dir" location="${dist.dir}/docs"/> |
126 |
> |
<property name="dist.4jdk7.docs.dir" location="${dist.dir}/jsr166-4jdk7docs"/> |
127 |
> |
<property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/> |
128 |
> |
<property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/> |
129 |
> |
<property name="dist.jsr166ejavadocs.dir" location="${dist.dir}/jsr166edocs"/> |
130 |
> |
<property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/> |
131 |
|
|
132 |
|
<!-- Jar locations --> |
133 |
< |
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
134 |
< |
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
135 |
< |
<property name="rt.jar" location="${java.home}/lib/rt.jar"/> |
136 |
< |
<property name="sinjdoc.jar" location="${lib.dir}/sinjdoc.jar"/> |
137 |
< |
|
138 |
< |
|
139 |
< |
<!-- Files excluded from dist-docs and emulation jar --> |
140 |
< |
<patternset id="unsafe.exclusion"> |
141 |
< |
<exclude name="java/util/Random.*"/> |
142 |
< |
<exclude name="sun/misc/Unsafe.*"/> |
143 |
< |
</patternset> |
144 |
< |
|
145 |
< |
<!-- Files excludes from emulation jar --> |
146 |
< |
<patternset id="atomic.exclusion"> |
147 |
< |
<exclude name="java/util/concurrent/atomic/AtomicBoolean*"/> |
148 |
< |
<exclude name="java/util/concurrent/atomic/AtomicInteger*"/> |
149 |
< |
<exclude name="java/util/concurrent/atomic/AtomicLong*"/> |
150 |
< |
<exclude name="java/util/concurrent/atomic/AtomicReference*"/> |
151 |
< |
<exclude name="java/util/concurrent/locks/LockSupport*"/> |
152 |
< |
<exclude name="java/util/concurrent/locks/ReentrantLock*"/> |
153 |
< |
</patternset> |
154 |
< |
|
155 |
< |
|
133 |
> |
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
134 |
> |
<property name="4jdk7product.jar" location="${build.4jdk7.lib.dir}/jsr166-4jdk7.jar"/> |
135 |
> |
<property name="jsr166x.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/> |
136 |
> |
<property name="jsr166y.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/> |
137 |
> |
<property name="jsr166e.jar" location="${build.jsr166elib.dir}/jsr166e.jar"/> |
138 |
> |
<property name="extra166y.jar" location="${build.extra166ylib.dir}/extra166y.jar"/> |
139 |
> |
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
140 |
> |
|
141 |
> |
<!-- Bootclasspath argument --> |
142 |
> |
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
143 |
> |
|
144 |
> |
<!-- Canonical location of jdk API docs, to use with javadoc link attribute --> |
145 |
> |
<property name="jdkapi5docs.url" value="http://docs.oracle.com/javase/1.5.0/docs/api/"/> |
146 |
> |
<property name="jdkapi6docs.url" value="http://docs.oracle.com/javase/6/docs/api/"/> |
147 |
> |
<property name="jdkapi7docs.url" value="http://docs.oracle.com/javase/7/docs/api/"/> |
148 |
> |
|
149 |
> |
<property name="jdkapi8docs.url" value="http://download.java.net/jdk8/docs/api/"/> |
150 |
> |
<!-- The below does not yet exist as of 2012-11 --> |
151 |
> |
<!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> --> |
152 |
> |
|
153 |
> |
<!-- Default jdk api doc location (latest stable release seems best) --> |
154 |
> |
<property name="jdkapidocs.url" value="${jdkapi7docs.url}"/> |
155 |
> |
|
156 |
> |
<!-- Test classpath --> |
157 |
> |
<path id="test.classpath"> |
158 |
> |
<pathelement location="${build.testcases.dir}"/> |
159 |
> |
<pathelement location="${junit.jar}"/> |
160 |
> |
</path> |
161 |
> |
|
162 |
> |
<!-- ALoops classpath --> |
163 |
> |
<path id="loops.classpath"> |
164 |
> |
<pathelement location="${build.loops.dir}"/> |
165 |
> |
</path> |
166 |
> |
|
167 |
> |
<!-- Support @jls tag, used in jdk8+ javadoc --> |
168 |
> |
<!-- TODO: How do we get &trade to work? --> |
169 |
> |
<!-- TODO: Why isn't @jls a "standard" tag? --> |
170 |
> |
<!-- property name="javadoc.jls.cite" value="The Java™ Language Specification" --> |
171 |
> |
<property name="javadoc.jls.cite" value="The Java Language Specification"/> |
172 |
> |
<property name="javadoc.jls.option" value="jls:a:See <cite>${javadoc.jls.cite}</cite>:"/> |
173 |
|
|
174 |
|
<!-- Main targets --> |
175 |
|
|
176 |
< |
<target name="compile" |
177 |
< |
depends="init, configure-compiler, prepare-src" |
178 |
< |
description="Compiles main sources to build folder"> |
176 |
> |
<target name="dists" |
177 |
> |
depends="dist, 4jdk7dist, jsr166edist, jsr166ydist, extra166ydist, jsr166xdist" |
178 |
> |
description="Builds all public jars and docs"/> |
179 |
|
|
180 |
< |
<property name="prepare.src.dir" value="${src.dir}"/> |
180 |
> |
<target name="compile" |
181 |
> |
depends="configure-compiler" |
182 |
> |
description="Compiles src/main sources to build dir"> |
183 |
|
|
184 |
|
<mkdir dir="${build.classes.dir}"/> |
185 |
|
|
186 |
< |
<!-- |
187 |
< |
<echo>javac ${gjc.args}</echo> |
188 |
< |
<echo>bootclasspath=${compile.bootclasspath}</echo> |
189 |
< |
--> |
190 |
< |
|
191 |
< |
<javac srcdir="${prepare.src.dir}" |
192 |
< |
destdir="${build.classes.dir}" |
193 |
< |
debug="${build.debug}" |
194 |
< |
debuglevel="${build.debuglevel}" |
195 |
< |
deprecation="${build.deprecation}" |
196 |
< |
source="${build.sourcelevel}" |
197 |
< |
fork="true"> |
186 |
> |
<javac srcdir="${src.dir}" |
187 |
> |
destdir="${build.classes.dir}" |
188 |
> |
debug="${build.debug}" |
189 |
> |
debuglevel="${build.debuglevel}" |
190 |
> |
deprecation="${build.deprecation}" |
191 |
> |
classpath="" |
192 |
> |
includeAntRuntime="false" |
193 |
> |
includeJavaRuntime="false" |
194 |
> |
executable="${javac8}" |
195 |
> |
fork="true"> |
196 |
> |
|
197 |
> |
<include name="**/*.java"/> |
198 |
> |
<compilerarg line="${build.args}"/> |
199 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
200 |
> |
<compilerarg value="-Xlint:all"/> |
201 |
|
|
105 |
– |
<compilerarg line="${gjc.args}"/> |
202 |
|
<!-- |
203 |
< |
<bootclasspath refid="compile.bootclasspath"/> |
203 |
> |
<exclude name="java/lang/**"/> |
204 |
> |
<compilerarg line="${build.args}"/> |
205 |
> |
<compilerarg line="-Xlint -Xmaxwarns 1000"/> |
206 |
|
--> |
207 |
|
|
208 |
|
</javac> |
210 |
|
</target> |
211 |
|
|
212 |
|
|
213 |
+ |
|
214 |
|
<target name="jar" |
215 |
< |
depends="configure-emulation, init-jar, native-jar, emulation-jar" |
216 |
< |
description="Builds library jar from compiled sources"/> |
215 |
> |
depends="compile" |
216 |
> |
description="Builds library jar from compiled sources"> |
217 |
> |
|
218 |
> |
<mkdir dir="${build.lib.dir}"/> |
219 |
> |
|
220 |
> |
<jar destfile="${product.jar}"> |
221 |
> |
<fileset dir="${build.classes.dir}"/> |
222 |
> |
</jar> |
223 |
> |
|
224 |
> |
</target> |
225 |
> |
|
226 |
|
|
227 |
|
|
228 |
|
<target name="test" |
229 |
< |
depends="init, configure-tests, report-tests" |
229 |
> |
depends="configure-tests, report-tests" |
230 |
|
description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" /> |
231 |
|
|
232 |
|
|
125 |
– |
<target name="checkstyle" |
126 |
– |
depends="filter-src" |
127 |
– |
description="Reports on style errors in Java source (verbose, mostly chaff)"> |
233 |
|
|
234 |
< |
<taskdef resource="checkstyletask.properties" |
235 |
< |
classpath="${lib.dir}/checkstyle-all-2.4.jar"/> |
234 |
> |
<target name="docs" |
235 |
> |
description="Builds javadocs for src/main to dist dir"> |
236 |
|
|
237 |
< |
<checkstyle> |
238 |
< |
<formatter type="plain"/> <!-- also available: type="xml" --> |
239 |
< |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
240 |
< |
</checkstyle> |
237 |
> |
<delete dir="${dist.javadocs.dir}"/> |
238 |
> |
<mkdir dir="${dist.javadocs.dir}"/> |
239 |
> |
|
240 |
> |
<!-- the packagenames="none" hack below prevents scanning the --> |
241 |
> |
<!-- sourcepath for packages --> |
242 |
> |
|
243 |
> |
<javadoc destdir="${dist.javadocs.dir}" |
244 |
> |
packagenames="none" |
245 |
> |
link="${jdkapi8docs.url}" |
246 |
> |
overview="${src.dir}/intro.html" |
247 |
> |
sourcepath="${src.dir}:${jdk8src.dir}" |
248 |
> |
classpath="" |
249 |
> |
executable="${javadoc8}"> |
250 |
> |
<arg value="-XDignore.symbol.file=true"/> |
251 |
> |
<arg value="-tag"/> |
252 |
> |
<arg value="${javadoc.jls.option}"/> |
253 |
> |
<fileset dir="${src.dir}" defaultexcludes="yes"> |
254 |
> |
<include name="**/*.java"/> |
255 |
> |
</fileset> |
256 |
> |
</javadoc> |
257 |
|
|
258 |
|
</target> |
259 |
|
|
260 |
|
|
140 |
– |
<target name="doccheck" |
141 |
– |
depends="filter-doccheck" |
142 |
– |
description="Reports on javadoc style errors"> |
261 |
|
|
262 |
< |
<delete dir="${build.doccheck.dir}"/> |
263 |
< |
<mkdir dir="${build.doccheck.dir}"/> |
262 |
> |
<target name="dist" |
263 |
> |
depends="dist-clean, dist-jar, docs" |
264 |
> |
description="Puts all distributable products in single hierarchy"/> |
265 |
|
|
147 |
– |
<javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck" |
148 |
– |
docletpath="${lib.dir}/doccheck.jar" |
149 |
– |
destdir="${build.doccheck.dir}"> |
150 |
– |
<packageset dir="${build.filter.doccheck.dir}"/> |
151 |
– |
</javadoc> |
266 |
|
|
267 |
< |
<echo>DocCheck output is in ${build.doccheck.dir}</echo> |
267 |
> |
<target name="release" |
268 |
> |
depends="dist" |
269 |
> |
description="Puts entire CVS tree, plus distribution productions, in a jar"> |
270 |
|
|
271 |
< |
</target> |
271 |
> |
<property name="release.jar" value="dist/jsr166-${version}-dist.jar"/> |
272 |
|
|
273 |
+ |
<jar basedir="${basedir}" destfile="${release.jar}"> |
274 |
+ |
<!-- <exclude name="build/**"/> --> |
275 |
+ |
<exclude name="${release.jar}"/> |
276 |
+ |
<exclude name="user.properties"/> |
277 |
+ |
<exclude name="etc/notes/**"/> |
278 |
+ |
<exclude name="src/emulation/**"/> |
279 |
+ |
<exclude name="**/SyntaxTest.java"/> |
280 |
+ |
<exclude name="**/SuperfluousAbstract.java"/> |
281 |
+ |
</jar> |
282 |
|
|
283 |
< |
<target name="docs" |
159 |
< |
depends="filter-src" |
160 |
< |
description="Builds javadocs with custom tags to build folder"> |
283 |
> |
</target> |
284 |
|
|
162 |
– |
<delete dir="${build.javadocs.dir}"/> |
163 |
– |
<mkdir dir="${build.javadocs.dir}"/> |
285 |
|
|
165 |
– |
<javadoc destdir="${build.javadocs.dir}" |
166 |
– |
link="http://java.sun.com/j2se/1.4.1/docs/api" |
167 |
– |
overview="${src.dir}/intro.html" |
168 |
– |
source="${build.docsourcelevel}"> |
169 |
– |
|
170 |
– |
<tag name="revised" description="Last revised:"/> |
171 |
– |
<tag name="spec" description="Specified by:"/> |
172 |
– |
<tag name="editor" description="Last edited by:"/> |
173 |
– |
<tag name="fixme" description="FIX ME:"/> |
286 |
|
|
287 |
< |
<packageset dir="${build.filter.src.dir}"/> |
287 |
> |
<target name="clean" |
288 |
> |
description="Removes all build products"> |
289 |
|
|
290 |
< |
</javadoc> |
290 |
> |
<delete dir="${build.dir}"/> |
291 |
> |
<delete dir="${build.classes.dir}"/> |
292 |
> |
<delete dir="${build.lib.dir}"/> |
293 |
|
|
294 |
|
</target> |
295 |
|
|
296 |
|
|
182 |
– |
<target name="sinjdocs" |
183 |
– |
depends="configure-tests" |
184 |
– |
description="Builds javadocs with custom tags to build folder"> |
297 |
|
|
298 |
< |
<delete dir="${build.sinjdocs.dir}"/> |
299 |
< |
<mkdir dir="${build.sinjdocs.dir}"/> |
298 |
> |
<target name="dist-clean" |
299 |
> |
description="Removes all build and distribution products"> |
300 |
|
|
301 |
< |
<java classname="net.cscott.sinjdoc.Main" fork="true"> |
301 |
> |
<delete dir="${dist.dir}"/> |
302 |
|
|
303 |
< |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
303 |
> |
</target> |
304 |
|
|
193 |
– |
<classpath> |
194 |
– |
<pathelement location="${sinjdoc.jar}"/> |
195 |
– |
<pathelement location="${lib.dir}/jutil.jar"/> |
196 |
– |
<pathelement location="${lib.dir}/cup.jar"/> |
197 |
– |
<path refid="test.classpath"/> |
198 |
– |
</classpath> |
305 |
|
|
306 |
|
|
307 |
< |
<arg value="-d"/> <arg value="${build.sinjdocs.dir}"/> |
202 |
< |
<arg value="-sourcepath"/> <arg value="${src.dir}"/> |
203 |
< |
<arg value="-overview"/> <arg value="${src.dir}/intro.html"/> |
204 |
< |
<arg value="-source"/> <arg value="${build.sourcelevel}"/> |
205 |
< |
<!-- <arg value="-verbose"/> --> |
206 |
< |
<!-- <arg value="-link"/> <arg value="http://java.sun.com/j2se/1.4.1/docs/api"/> --> |
207 |
< |
<arg value="java.lang"/> |
208 |
< |
<arg value="java.util"/> |
209 |
< |
<arg value="java.util.concurrent"/> |
210 |
< |
<arg value="java.util.concurrent.atomic"/> |
211 |
< |
<arg value="java.util.concurrent.locks"/> |
212 |
< |
|
213 |
< |
<!-- |
214 |
< |
<arg value="-help"/> |
215 |
< |
--> |
307 |
> |
<!-- Internal targets --> |
308 |
|
|
309 |
< |
</java> |
309 |
> |
|
310 |
> |
<target name="dist-jar" |
311 |
> |
depends="clean, jar"> |
312 |
> |
|
313 |
> |
<copy file="${product.jar}" todir="${dist.dir}"/> |
314 |
|
|
315 |
|
</target> |
316 |
|
|
317 |
|
|
318 |
< |
<target name="strip" |
319 |
< |
depends="init, configure-compiler" |
224 |
< |
description="Strip generics from java source (not working yet)"> |
318 |
> |
<target name="compile-tests" |
319 |
> |
depends="jar"> |
320 |
|
|
321 |
< |
<mkdir dir="${build.stripped.dir}"/> |
321 |
> |
<mkdir dir="${build.testcases.dir}"/> |
322 |
|
|
323 |
< |
<!-- |
324 |
< |
# javac -s doesn't reliably generate compilable code. It generates |
230 |
< |
# bridge methods (marked as "synthetic") that can have identical |
231 |
< |
# signatures to existing methods except for the return value. |
232 |
< |
--> |
233 |
< |
<javac srcdir="${src.dir}" |
234 |
< |
destdir="${build.stripped.dir}" |
323 |
> |
<javac srcdir="${tck.src.dir}" |
324 |
> |
destdir="${build.testcases.dir}" |
325 |
|
debug="${build.debug}" |
326 |
|
debuglevel="${build.debuglevel}" |
327 |
|
deprecation="${build.deprecation}" |
328 |
|
source="${build.sourcelevel}" |
329 |
|
fork="true"> |
330 |
|
|
331 |
< |
<compilerarg line="${gjc.args} -s"/> |
332 |
< |
<!-- |
333 |
< |
<bootclasspath refid="compile.bootclasspath"/> |
334 |
< |
--> |
331 |
> |
<compilerarg value="${bootclasspath.args}"/> |
332 |
> |
<compilerarg line="${build.args}"/> |
333 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
334 |
> |
|
335 |
> |
<classpath refid="test.classpath"/> |
336 |
|
|
337 |
|
</javac> |
338 |
|
|
339 |
< |
</target> |
339 |
> |
<javac srcdir="${test.src.dir}" |
340 |
> |
destdir="${build.testcases.dir}" |
341 |
> |
debug="${build.debug}" |
342 |
> |
debuglevel="${build.debuglevel}" |
343 |
> |
deprecation="${build.deprecation}" |
344 |
> |
source="${build.sourcelevel}" |
345 |
> |
fork="true"> |
346 |
|
|
347 |
+ |
<include name="jsr166/test/**"/> |
348 |
|
|
349 |
< |
<target name="dist" |
350 |
< |
depends="init, dist-clean, dist-jar, dist-docs" |
351 |
< |
description="Puts all distributable products in single hierarchy"/> |
349 |
> |
<compilerarg value="${bootclasspath.args}"/> |
350 |
> |
<compilerarg line="${build.args}"/> |
351 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
352 |
|
|
353 |
< |
<target name="release" |
354 |
< |
depends="dist" |
355 |
< |
description="Puts entire CVS tree, plus distribution productions, in a jar"> |
353 |
> |
<classpath refid="test.classpath"/> |
354 |
> |
|
355 |
> |
</javac> |
356 |
|
|
357 |
|
<!-- |
358 |
< |
#keep build dir? - dl |
359 |
< |
<delete dir="${build.dir}"/> |
360 |
< |
--> |
361 |
< |
<property name="release.jar" value="dist/jsr166-${version}-dist.jar"/> |
358 |
> |
<javac srcdir="${jtreg.src.dir}" |
359 |
> |
destdir="${build.testcases.dir}" |
360 |
> |
debug="${build.debug}" |
361 |
> |
debuglevel="${build.debuglevel}" |
362 |
> |
deprecation="${build.deprecation}" |
363 |
> |
source="${build.sourcelevel}" |
364 |
> |
fork="true"> |
365 |
|
|
366 |
< |
<jar basedir="${basedir}" destfile="${release.jar}"> |
367 |
< |
<exclude name="${release.jar}"/> |
368 |
< |
<exclude name="user.properties"/> |
369 |
< |
<exclude name="etc/notes/**"/> |
370 |
< |
<exclude name="lib/gjc/2.1/**"/> |
371 |
< |
<exclude name="**/SyntaxTest.java"/> |
372 |
< |
</jar> |
366 |
> |
<compilerarg value="${bootclasspath.args}"/> |
367 |
> |
<compilerarg line="${build.args}"/> |
368 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
369 |
> |
|
370 |
> |
<classpath refid="test.classpath"/> |
371 |
> |
|
372 |
> |
</javac> |
373 |
> |
--> |
374 |
|
|
375 |
|
</target> |
376 |
|
|
275 |
– |
<target name="clean" |
276 |
– |
description="Removes all build products"> |
377 |
|
|
378 |
< |
<delete dir="${build.dir}"/> |
379 |
< |
<delete dir="${build.classes.dir}"/> |
280 |
< |
<delete dir="${build.lib.dir}"/> |
378 |
> |
<target name="run-tests" |
379 |
> |
depends="compile-tests"> |
380 |
|
|
381 |
< |
</target> |
381 |
> |
<!-- May be overridden by user.properties --> |
382 |
> |
<property name="testcase" value="*"/> |
383 |
|
|
384 |
+ |
<mkdir dir="${build.reports.dir}"/> |
385 |
|
|
386 |
< |
<target name="dist-clean" |
387 |
< |
description="Removes all build and distribution products"> |
386 |
> |
<junit printsummary="true" |
387 |
> |
showoutput="true" |
388 |
> |
errorProperty="junit.failed" |
389 |
> |
failureProperty="junit.failed" |
390 |
> |
dir="${build.reports.dir}" |
391 |
> |
fork="true"> |
392 |
|
|
393 |
< |
<delete dir="${dist.dir}"/> |
393 |
> |
<jvmarg value="${bootclasspath.args}"/> |
394 |
> |
<jvmarg value="-server"/> |
395 |
> |
<jvmarg value="-showversion"/> |
396 |
|
|
397 |
< |
</target> |
397 |
> |
<classpath refid="test.classpath"/> |
398 |
|
|
399 |
+ |
<formatter type="xml"/> |
400 |
|
|
401 |
< |
<target name="dist-docs" |
402 |
< |
depends="filter-src" |
403 |
< |
description="Builds javadocs without custom tags to dist folder"> |
401 |
> |
<batchtest todir="${build.reports.dir}" unless="no.test.tck"> |
402 |
> |
<fileset dir="${tck.src.dir}"> |
403 |
> |
<include name="**/${testcase}Test.java"/> |
404 |
> |
</fileset> |
405 |
> |
</batchtest> |
406 |
|
|
407 |
< |
<delete dir="${dist.javadocs.dir}"/> |
408 |
< |
<mkdir dir="${dist.javadocs.dir}"/> |
407 |
> |
<batchtest todir="${build.reports.dir}" if="do.test.old"> |
408 |
> |
<fileset dir="${test.src.dir}"> |
409 |
> |
<include name="jsr166/test/**/${testcase}Test.java"/> |
410 |
> |
</fileset> |
411 |
> |
</batchtest> |
412 |
|
|
413 |
< |
<javadoc destdir="${dist.javadocs.dir}" |
414 |
< |
link="http://java.sun.com/j2se/1.4.1/docs/api" |
415 |
< |
overview="${src.dir}/intro.html" |
416 |
< |
source="${build.docsourcelevel}"> |
413 |
> |
<!-- |
414 |
> |
<batchtest todir="${build.reports.dir}" if="do.test.jtreg"> |
415 |
> |
<fileset dir="${jtreg.src.dir}"> |
416 |
> |
<include name="**/${testcase}Test.java"/> |
417 |
> |
</fileset> |
418 |
> |
</batchtest> |
419 |
> |
--> |
420 |
> |
|
421 |
> |
</junit> |
422 |
|
|
423 |
< |
<packageset dir="${build.filter.src.dir}"/> |
423 |
> |
</target> |
424 |
|
|
425 |
< |
</javadoc> |
425 |
> |
|
426 |
> |
<target name="report-tests" |
427 |
> |
depends="run-tests"> |
428 |
> |
|
429 |
> |
<!-- Sets junit.report.format to frames if redirection is present, |
430 |
> |
otherwise sets it to noframes. --> |
431 |
> |
<available property="junit.report.format" |
432 |
> |
value="frames" |
433 |
> |
classname="org.apache.xalan.lib.Redirect" |
434 |
> |
/> |
435 |
> |
<property name="junit.report.format" value="noframes"/> |
436 |
> |
|
437 |
> |
<junitreport todir="${build.reports.dir}"> |
438 |
> |
<fileset dir="${build.reports.dir}"> |
439 |
> |
<include name="TEST-*.xml"/> |
440 |
> |
</fileset> |
441 |
> |
<report format="${junit.report.format}" todir="${build.reports.dir}" |
442 |
> |
/> |
443 |
> |
</junitreport> |
444 |
> |
|
445 |
> |
<fail message="Test Cases Failed" if="junit.failed"/> |
446 |
|
|
447 |
|
</target> |
448 |
|
|
449 |
|
|
450 |
+ |
<target name="configure-compiler"> |
451 |
|
|
452 |
< |
<!-- Internal targets --> |
452 |
> |
<property name="unchecked.option" value="-Xlint:unchecked"/> |
453 |
> |
|
454 |
> |
<condition property="warnunchecked.arg" value="${unchecked.option}"> |
455 |
> |
<istrue value="${build.warnunchecked}"/> |
456 |
> |
</condition> |
457 |
|
|
458 |
+ |
<property name="warnunchecked.arg" value=""/> |
459 |
|
|
316 |
– |
<target name="init"> |
460 |
|
|
461 |
< |
<!-- Version is kept in a separate file --> |
462 |
< |
<loadfile property="version" srcFile="version.properties"/> |
320 |
< |
<echo>Building JSR-166 version ${version}</echo> |
321 |
< |
<echo>java.home is ${java.home}</echo> |
461 |
> |
<!-- Common options in javac invocations --> |
462 |
> |
<property name="build.args" value="${warnunchecked.arg}"/> |
463 |
|
|
464 |
|
</target> |
465 |
|
|
466 |
|
|
467 |
< |
<target name="init-jar"> |
467 |
> |
<target name="configure-tests" |
468 |
> |
depends="configure-compiler"> |
469 |
|
|
470 |
< |
<mkdir dir="${build.lib.dir}"/> |
470 |
> |
<!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 --> |
471 |
> |
<available property="junit.available" |
472 |
> |
classname="junit.framework.Protectable"/> |
473 |
|
|
474 |
< |
</target> |
474 |
> |
<!-- Xalan --> |
475 |
> |
<available property="xalan.available" |
476 |
> |
classname="org.apache.xalan.Version"/> |
477 |
|
|
478 |
|
|
479 |
< |
<target name="native-jar" |
480 |
< |
depends="compile" |
481 |
< |
unless="build.emulation.true"> |
479 |
> |
<!-- Ant 1.6beta and later don't need or want this check --> |
480 |
> |
<!-- |
481 |
> |
<fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests" |
482 |
> |
unless="junit.available"/> |
483 |
|
|
484 |
< |
<jar destfile="${product.jar}"> |
485 |
< |
<fileset dir="${build.classes.dir}"/> |
486 |
< |
</jar> |
484 |
> |
<fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests" |
485 |
> |
unless="xalan.available"/> |
486 |
> |
--> |
487 |
|
|
488 |
|
</target> |
489 |
|
|
490 |
|
|
491 |
< |
<target name="compile-emulation" |
345 |
< |
depends="init, configure-compiler" |
346 |
< |
if="build.emulation.true"> |
491 |
> |
<!-- Various demos and test programs --> |
492 |
|
|
348 |
– |
<mkdir dir="${build.emulation.dir}"/> |
493 |
|
|
494 |
< |
<javac srcdir="${emulation.src.dir}" |
495 |
< |
destdir="${build.emulation.dir}" |
494 |
> |
<target name="loops" depends="configure-compiler" |
495 |
> |
description="Benchmark from Doug Lea's AQS paper"> |
496 |
> |
|
497 |
> |
<mkdir dir="${build.loops.dir}"/> |
498 |
> |
|
499 |
> |
<javac srcdir="${loops.src.dir}" |
500 |
> |
destdir="${build.loops.dir}" |
501 |
|
debug="${build.debug}" |
502 |
|
debuglevel="${build.debuglevel}" |
503 |
|
deprecation="${build.deprecation}" |
504 |
|
source="${build.sourcelevel}" |
505 |
|
fork="true"> |
506 |
|
|
507 |
< |
<compilerarg line="${gjc.args}"/> |
508 |
< |
<!-- |
509 |
< |
<bootclasspath refid="compile.bootclasspath"/> |
361 |
< |
--> |
507 |
> |
<compilerarg line="${build.args}"/> |
508 |
> |
<classpath refid="loops.classpath"/> |
509 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
510 |
|
|
511 |
|
</javac> |
512 |
|
|
513 |
+ |
<java classname="ALoops" fork="true"> |
514 |
+ |
<classpath refid="loops.classpath"/> |
515 |
+ |
</java> |
516 |
+ |
|
517 |
|
</target> |
518 |
|
|
519 |
|
|
520 |
< |
<target name="emulation-jar" |
369 |
< |
depends="compile-emulation" |
370 |
< |
if="build.emulation.true"> |
520 |
> |
<!-- jsr166 4jdk7 --> |
521 |
|
|
522 |
|
|
523 |
< |
<jar destfile="${product.jar}" duplicate="add"> |
524 |
< |
<fileset dir="${build.classes.dir}"> |
525 |
< |
<patternset refid="atomic.exclusion"/> |
526 |
< |
<patternset refid="unsafe.exclusion"/> |
527 |
< |
</fileset> |
528 |
< |
<fileset dir="${build.emulation.dir}"/> |
523 |
> |
<target name="4jdk7compile" |
524 |
> |
depends="configure-compiler" |
525 |
> |
description="Compiles src/jdk7 sources, targeting jdk7"> |
526 |
> |
|
527 |
> |
<mkdir dir="${build.4jdk7.classes.dir}"/> |
528 |
> |
|
529 |
> |
<javac srcdir="${4jdk7src.dir}" |
530 |
> |
destdir="${build.4jdk7.classes.dir}" |
531 |
> |
debug="${build.debug}" |
532 |
> |
debuglevel="${build.debuglevel}" |
533 |
> |
deprecation="${build.deprecation}" |
534 |
> |
source="6" |
535 |
> |
classpath="" |
536 |
> |
bootclasspath="${bootclasspath6}" |
537 |
> |
includeAntRuntime="false" |
538 |
> |
includeJavaRuntime="false" |
539 |
> |
executable="${javac7}" |
540 |
> |
fork="true"> |
541 |
> |
|
542 |
> |
<include name="**/*.java"/> |
543 |
> |
<compilerarg line="${build.args}"/> |
544 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
545 |
> |
<compilerarg value="-Xlint:all"/> |
546 |
> |
|
547 |
> |
</javac> |
548 |
> |
|
549 |
> |
<mkdir dir="${build.4jdk7.lib.dir}"/> |
550 |
> |
|
551 |
> |
<jar destfile="${4jdk7product.jar}" index="true"> |
552 |
> |
<fileset dir="${build.4jdk7.classes.dir}"/> |
553 |
|
</jar> |
554 |
|
|
555 |
< |
</target> |
555 |
> |
<mkdir dir="${build.4jdk7.tck.classes.dir}"/> |
556 |
|
|
557 |
+ |
<javac srcdir="${tck.src.dir}" |
558 |
+ |
destdir="${build.4jdk7.tck.classes.dir}" |
559 |
+ |
debug="${build.debug}" |
560 |
+ |
debuglevel="${build.debuglevel}" |
561 |
+ |
deprecation="${build.deprecation}" |
562 |
+ |
source="6" |
563 |
+ |
classpath="${junit.jar}" |
564 |
+ |
bootclasspath="${4jdk7product.jar}:${bootclasspath6}" |
565 |
+ |
includeAntRuntime="false" |
566 |
+ |
includeJavaRuntime="false" |
567 |
+ |
executable="${javac7}" |
568 |
+ |
fork="true"> |
569 |
+ |
|
570 |
+ |
<include name="**/*.java"/> |
571 |
+ |
<compilerarg line="${build.args}"/> |
572 |
+ |
<compilerarg value="-XDignore.symbol.file=true"/> |
573 |
+ |
<compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/> |
574 |
|
|
575 |
< |
<target name="dist-jar" |
385 |
< |
depends="clean, jar"> |
575 |
> |
</javac> |
576 |
|
|
577 |
< |
<copy file="${product.jar}" todir="${dist.dir}"/> |
577 |
> |
</target> |
578 |
|
|
579 |
+ |
|
580 |
+ |
<target name="4jdk7-test-tck" |
581 |
+ |
depends="4jdk7compile" |
582 |
+ |
description="Runs tck tests for jsr166-4jdk7 directly"> |
583 |
+ |
<run-tck-tests |
584 |
+ |
jvm="${java7}" |
585 |
+ |
tck.classes="${build.4jdk7.tck.classes.dir}" |
586 |
+ |
product.jar="${4jdk7product.jar}"/> |
587 |
|
</target> |
588 |
|
|
589 |
|
|
590 |
< |
<target name="compile-ant-filter" |
591 |
< |
depends="init"> |
590 |
> |
<target name="4jdk7-test-tck-junit" |
591 |
> |
depends="4jdk7compile" |
592 |
> |
description="Runs tck tests for jsr166-4jdk7 via junit task (experimental)"> |
593 |
|
|
594 |
< |
<mkdir dir="${build.ant.dir}"/> |
594 |
> |
<junit printsummary="true" |
595 |
> |
showoutput="true" |
596 |
> |
errorProperty="junit.failed" |
597 |
> |
failureProperty="junit.failed" |
598 |
> |
includeantruntime="true" |
599 |
> |
jvm="${java7}" |
600 |
> |
fork="true"> |
601 |
|
|
602 |
< |
<javac srcdir="${ant.src.dir}" |
603 |
< |
destdir="${build.ant.dir}" |
399 |
< |
source="1.4" |
400 |
< |
/> |
602 |
> |
<jvmarg value="-Xbootclasspath/p:${4jdk7product.jar}"/> |
603 |
> |
<jvmarg value="-server"/> |
604 |
|
|
605 |
+ |
<classpath> |
606 |
+ |
<pathelement location="${junit.jar}"/> |
607 |
+ |
<pathelement location="${build.4jdk7.tck.classes.dir}"/> |
608 |
+ |
</classpath> |
609 |
+ |
|
610 |
+ |
<formatter type="brief"/> |
611 |
+ |
|
612 |
+ |
<test name="JSR166TestCase" haltonfailure="no"> |
613 |
+ |
</test> |
614 |
+ |
|
615 |
+ |
</junit> |
616 |
|
</target> |
617 |
|
|
618 |
|
|
619 |
< |
<target name="filter-src" |
620 |
< |
depends="compile-ant-filter"> |
619 |
> |
<target name="4jdk7docs" |
620 |
> |
description="Builds javadocs for src/jdk7 to dist dir"> |
621 |
|
|
622 |
< |
<mkdir dir="${build.filter.src.dir}"/> |
622 |
> |
<delete dir="${dist.4jdk7.docs.dir}"/> |
623 |
> |
<mkdir dir="${dist.4jdk7.docs.dir}"/> |
624 |
|
|
625 |
< |
<copy todir="${build.filter.src.dir}"> |
626 |
< |
<fileset dir="${src.dir}"> |
627 |
< |
<include name="**/*.html"/> |
625 |
> |
<javadoc destdir="${dist.4jdk7.docs.dir}" |
626 |
> |
packagenames="none" |
627 |
> |
link="${jdkapi7docs.url}" |
628 |
> |
overview="${4jdk7src.dir}/intro.html" |
629 |
> |
sourcepath="${4jdk7src.dir}:${jdk7src.dir}" |
630 |
> |
classpath="" |
631 |
> |
executable="${javadoc7}"> |
632 |
> |
<arg value="-XDignore.symbol.file=true"/> |
633 |
> |
<fileset dir="${4jdk7src.dir}" defaultexcludes="yes"> |
634 |
> |
<include name="**/*.java"/> |
635 |
|
</fileset> |
636 |
< |
</copy> |
636 |
> |
</javadoc> |
637 |
|
|
638 |
< |
<copy todir="${build.filter.src.dir}"> |
417 |
< |
<fileset dir="${src.dir}"> |
418 |
< |
<exclude name="**/*.html"/> |
419 |
< |
<patternset refid="unsafe.exclusion"/> |
420 |
< |
</fileset> |
421 |
< |
<filterchain> |
638 |
> |
</target> |
639 |
|
|
423 |
– |
<!-- |
424 |
– |
# This filter gets rid of angle-bracketed type parameters |
425 |
– |
# so that javadoc can run on the result. The following |
426 |
– |
# heuristic seems to work: |
427 |
– |
# |
428 |
– |
# For all lines not starting with space(s)-asterisk-space(s), |
429 |
– |
# replace <something> with a space, where there may be more |
430 |
– |
# than one right angle bracket at the end, and "something" |
431 |
– |
# must not contain parens or pipes. (This may need some |
432 |
– |
# tweaking.) |
433 |
– |
--> |
640 |
|
|
641 |
< |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
642 |
< |
classpath="${build.ant.dir}"> |
643 |
< |
<param name="notmatching" value="^\s+\*\s.*$"/> |
438 |
< |
<param name="pattern" value="<[^|>()]+?>+"/> |
439 |
< |
<param name="replacement" value=" "/> |
440 |
< |
</filterreader> |
641 |
> |
<target name="4jdk7dist" |
642 |
> |
depends="4jdk7dist-clean, 4jdk7dist-jar, 4jdk7docs" |
643 |
> |
description="Puts all distributable products in single hierarchy"/> |
644 |
|
|
645 |
|
|
443 |
– |
<!-- |
444 |
– |
# This filter uncomments lines beginning with "//@" so that |
445 |
– |
# javadoc can see imports that are needed to resolve links |
446 |
– |
# but that shouldn't be in the compiled code. |
447 |
– |
--> |
646 |
|
|
647 |
< |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
648 |
< |
classpath="${build.ant.dir}"> |
649 |
< |
<param name="matching" value="^//@.*$"/> |
650 |
< |
<param name="pattern" value="^//@"/> |
453 |
< |
<param name="replacement" value=""/> |
454 |
< |
</filterreader> |
455 |
< |
</filterchain> |
456 |
< |
</copy> |
647 |
> |
<target name="4jdk7clean" |
648 |
> |
description="Removes all build products"> |
649 |
> |
|
650 |
> |
<delete dir="${build.4jdk7.dir}"/> |
651 |
|
|
652 |
|
</target> |
653 |
|
|
654 |
|
|
655 |
|
|
656 |
+ |
<target name="4jdk7dist-clean" |
657 |
+ |
description="Removes all build and distribution products"> |
658 |
|
|
659 |
< |
<target name="filter-doccheck" |
464 |
< |
depends="filter-src"> |
659 |
> |
</target> |
660 |
|
|
661 |
< |
<mkdir dir="${build.filter.doccheck.dir}"/> |
661 |
> |
<target name="4jdk7dist-jar" |
662 |
> |
depends="4jdk7clean, 4jdk7compile"> |
663 |
|
|
664 |
< |
<copy todir="${build.filter.doccheck.dir}"> |
469 |
< |
<fileset dir="${build.filter.src.dir}"> |
470 |
< |
<include name="**/*.html"/> |
471 |
< |
</fileset> |
472 |
< |
</copy> |
664 |
> |
<copy file="${4jdk7product.jar}" todir="${dist.dir}"/> |
665 |
|
|
666 |
< |
<property name="generic.declarations" |
475 |
< |
value="/** Fake type parameter. */ public interface E {} /** Fake type parameter. */ public interface T {} /** Fake type parameter. */ public interface K {} /** Fake type parameter. */ public interface V {}" |
476 |
< |
/> |
666 |
> |
</target> |
667 |
|
|
668 |
< |
<copy todir="${build.filter.doccheck.dir}"> |
479 |
< |
<fileset dir="${build.filter.src.dir}"> |
480 |
< |
<exclude name="**/*.html"/> |
481 |
< |
</fileset> |
482 |
< |
<filterchain> |
483 |
< |
<!-- |
484 |
< |
# These two filters try to make the source look like |
485 |
< |
# something that doccheck can process. The first removes |
486 |
< |
# -source 1.4 assertions and the second adds in a bunch |
487 |
< |
# of single letter public nested marker interfaces so that |
488 |
< |
# the generic type parameters are recognized. |
489 |
< |
--> |
490 |
< |
|
491 |
< |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
492 |
< |
classpath="${build.ant.dir}"> |
493 |
< |
<param name="matching" value="^\s*assert[\s ].*$"/> |
494 |
< |
<param name="pattern" value="assert"/> |
495 |
< |
<param name="replacement" value="//assert"/> |
496 |
< |
</filterreader> |
497 |
< |
|
498 |
< |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
499 |
< |
classpath="${build.ant.dir}"> |
500 |
< |
<param name="matching" value="^([^*]*(class|interface|implements) .*|)\{.*$"/> |
501 |
< |
<param name="pattern" value="$"/> |
502 |
< |
<param name="replacement" value=" ${generic.declarations}"/> |
503 |
< |
</filterreader> |
668 |
> |
<!-- jsr166x --> |
669 |
|
|
670 |
< |
</filterchain> |
671 |
< |
</copy> |
670 |
> |
|
671 |
> |
<target name="jsr166xcompile" |
672 |
> |
depends="configure-compiler" |
673 |
> |
description="Compiles jsr166x sources to build dir"> |
674 |
> |
|
675 |
> |
<mkdir dir="${build.jsr166x.dir}"/> |
676 |
> |
|
677 |
> |
<javac srcdir="${topsrc.dir}" |
678 |
> |
destdir="${build.jsr166x.dir}" |
679 |
> |
debug="${build.debug}" |
680 |
> |
debuglevel="${build.debuglevel}" |
681 |
> |
deprecation="${build.deprecation}" |
682 |
> |
classpath="" |
683 |
> |
source="5" |
684 |
> |
bootclasspath="${bootclasspath6}" |
685 |
> |
includeAntRuntime="false" |
686 |
> |
includeJavaRuntime="false" |
687 |
> |
executable="${javac7}" |
688 |
> |
fork="true"> |
689 |
> |
|
690 |
> |
<include name="jsr166x/**/*.java"/> |
691 |
> |
<compilerarg line="${build.args}"/> |
692 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
693 |
> |
<compilerarg value="-Xlint:all,-unchecked,-rawtypes"/> |
694 |
> |
|
695 |
> |
</javac> |
696 |
|
|
697 |
|
</target> |
698 |
|
|
699 |
|
|
511 |
– |
<target name="compile-tests" |
512 |
– |
depends="jar"> |
700 |
|
|
701 |
< |
<mkdir dir="${build.testcases.dir}"/> |
701 |
> |
<target name="jsr166xjar" |
702 |
> |
depends="jsr166xcompile" |
703 |
> |
description="Builds library jar from compiled sources"> |
704 |
|
|
705 |
< |
<!-- |
517 |
< |
<echo>javac ${gjc.args}</echo> |
518 |
< |
<echo>bootclasspath=${test.compile.bootclasspath}</echo> |
519 |
< |
<echo>classpath="${test.classpath}"</echo> |
520 |
< |
--> |
705 |
> |
<mkdir dir="${build.jsr166xlib.dir}"/> |
706 |
|
|
707 |
< |
<javac srcdir="${test.src.dir}" |
708 |
< |
destdir="${build.testcases.dir}" |
709 |
< |
debug="${build.debug}" |
525 |
< |
debuglevel="${build.debuglevel}" |
526 |
< |
deprecation="${build.deprecation}" |
527 |
< |
source="${build.sourcelevel}" |
528 |
< |
fork="true"> |
707 |
> |
<jar destfile="${jsr166x.jar}"> |
708 |
> |
<fileset dir="${build.jsr166x.dir}"/> |
709 |
> |
</jar> |
710 |
|
|
711 |
< |
<compilerarg line="${gjc.args}"/> |
531 |
< |
<!-- |
532 |
< |
<bootclasspath refid="test.compile.bootclasspath"/> |
533 |
< |
--> |
534 |
< |
<classpath refid="test.classpath"/> |
535 |
< |
|
536 |
< |
<include name="java/**"/> |
537 |
< |
<include name="jsr166/**"/> |
711 |
> |
</target> |
712 |
|
|
713 |
< |
</javac> |
713 |
> |
|
714 |
> |
|
715 |
> |
<target name="jsr166xdocs" |
716 |
> |
description="Builds javadocs to dist dir"> |
717 |
> |
|
718 |
> |
<delete dir="${dist.jsr166xjavadocs.dir}"/> |
719 |
> |
<mkdir dir="${dist.jsr166xjavadocs.dir}"/> |
720 |
> |
|
721 |
> |
<javadoc destdir="${dist.jsr166xjavadocs.dir}" |
722 |
> |
packagenames="jsr166x.*" |
723 |
> |
link="${jdkapidocs.url}" |
724 |
> |
source="5" |
725 |
> |
bootclasspath="${bootclasspath6}" |
726 |
> |
sourcepath="${topsrc.dir}:${jdk6src.dir}" |
727 |
> |
executable="${javadoc7}" |
728 |
> |
additionalparam="-XDignore.symbol.file=true" /> |
729 |
|
|
730 |
|
</target> |
731 |
|
|
732 |
|
|
733 |
< |
<target name="run-tests" |
734 |
< |
depends="compile-tests"> |
733 |
> |
<target name="jsr166xdist" |
734 |
> |
depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdocs" |
735 |
> |
description="Puts all distributable products in single hierarchy"/> |
736 |
|
|
547 |
– |
<!-- May be overridden by user.properties --> |
548 |
– |
<property name="testcase" value="*"/> |
737 |
|
|
550 |
– |
<mkdir dir="${build.reports.dir}"/> |
738 |
|
|
739 |
< |
<junit printsummary="true" |
740 |
< |
showoutput="true" |
554 |
< |
errorProperty="junit.failed" |
555 |
< |
failureProperty="junit.failed" |
556 |
< |
dir="${build.reports.dir}" |
557 |
< |
fork="true"> |
739 |
> |
<target name="jsr166xclean" |
740 |
> |
description="Removes all build products"> |
741 |
|
|
742 |
< |
<jvmarg value="-Xbootclasspath:${test.run.bootclasspath}"/> |
742 |
> |
<delete dir="${build.jsr166x.dir}"/> |
743 |
> |
<delete dir="${build.jsr166xlib.dir}"/> |
744 |
|
|
745 |
< |
<formatter type="xml"/> |
745 |
> |
</target> |
746 |
|
|
563 |
– |
<batchtest todir="${build.reports.dir}"> |
564 |
– |
<fileset dir="${test.src.dir}"> |
565 |
– |
<include name="java/**/${testcase}Test.java"/> |
566 |
– |
<include name="jsr166/**/${testcase}Test.java"/> |
567 |
– |
</fileset> |
568 |
– |
</batchtest> |
747 |
|
|
748 |
< |
</junit> |
748 |
> |
|
749 |
> |
<target name="jsr166xdist-clean" |
750 |
> |
description="Removes all build and distribution products"> |
751 |
|
|
752 |
|
</target> |
753 |
|
|
754 |
|
|
755 |
< |
<target name="report-tests" |
756 |
< |
depends="run-tests"> |
755 |
> |
<target name="jsr166xdist-jar" |
756 |
> |
depends="jsr166xclean, jsr166xjar"> |
757 |
|
|
758 |
< |
<!-- Sets junit.report.format to frames if redirection is present, |
579 |
< |
otherwise sets it to noframes. --> |
580 |
< |
<available property="junit.report.format" |
581 |
< |
value="frames" |
582 |
< |
classname="org.apache.xalan.lib.Redirect" |
583 |
< |
/> |
584 |
< |
<property name="junit.report.format" value="noframes"/> |
758 |
> |
<copy file="${jsr166x.jar}" todir="${dist.dir}"/> |
759 |
|
|
760 |
< |
<junitreport todir="${build.reports.dir}"> |
587 |
< |
<fileset dir="${build.reports.dir}"> |
588 |
< |
<include name="TEST-*.xml"/> |
589 |
< |
</fileset> |
590 |
< |
<report styledir="${stylesheet.dir}" |
591 |
< |
format="${junit.report.format}" |
592 |
< |
todir="${build.reports.dir}" |
593 |
< |
/> |
594 |
< |
</junitreport> |
760 |
> |
</target> |
761 |
|
|
762 |
< |
<fail message="Test Cases Failed" if="junit.failed"/> |
762 |
> |
<!-- jsr166y --> |
763 |
|
|
764 |
+ |
|
765 |
+ |
<target name="jsr166ycompile" |
766 |
+ |
depends="configure-compiler" |
767 |
+ |
description="Compiles jsr166y sources"> |
768 |
+ |
|
769 |
+ |
<mkdir dir="${build.jsr166y.dir}"/> |
770 |
+ |
|
771 |
+ |
<javac srcdir="${topsrc.dir}" |
772 |
+ |
destdir="${build.jsr166y.dir}" |
773 |
+ |
debug="${build.debug}" |
774 |
+ |
debuglevel="${build.debuglevel}" |
775 |
+ |
deprecation="${build.deprecation}" |
776 |
+ |
source="6" |
777 |
+ |
classpath="" |
778 |
+ |
bootclasspath="${bootclasspath6}" |
779 |
+ |
includeAntRuntime="false" |
780 |
+ |
includeJavaRuntime="false" |
781 |
+ |
executable="${javac7}" |
782 |
+ |
fork="true"> |
783 |
+ |
|
784 |
+ |
<include name="jsr166y/**/*.java"/> |
785 |
+ |
<compilerarg line="${build.args}"/> |
786 |
+ |
<compilerarg value="-XDignore.symbol.file=true"/> |
787 |
+ |
<compilerarg value="-Xlint:all"/> |
788 |
+ |
</javac> |
789 |
|
</target> |
790 |
|
|
791 |
|
|
792 |
< |
<target name="configure-compiler"> |
792 |
> |
<target name="jsr166yjar" |
793 |
> |
depends="jsr166ycompile" |
794 |
> |
description="Builds library jar from compiled sources"> |
795 |
|
|
796 |
< |
<property name="gjc.version" |
604 |
< |
value="2.2"/> |
796 |
> |
<mkdir dir="${build.jsr166ylib.dir}"/> |
797 |
|
|
798 |
< |
<condition property="novariance.arg" value="-novariance"> |
799 |
< |
<and> |
800 |
< |
<equals arg1="${gjc.version}" arg2="2.0"/> |
609 |
< |
<or> |
610 |
< |
<not><isset property="gjc.novariance"/></not> |
611 |
< |
<istrue value="${gjc.novariance}"/> |
612 |
< |
</or> |
613 |
< |
</and> |
614 |
< |
</condition> |
798 |
> |
<jar destfile="${jsr166y.jar}" index="true"> |
799 |
> |
<fileset dir="${build.jsr166y.dir}"/> |
800 |
> |
</jar> |
801 |
|
|
802 |
< |
<property name="novariance.arg" |
617 |
< |
value=""/> |
802 |
> |
</target> |
803 |
|
|
619 |
– |
<property name="gjc.dir" |
620 |
– |
value="${lib.dir}/gjc"/> |
804 |
|
|
622 |
– |
<property name="javac.jar" |
623 |
– |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
805 |
|
|
806 |
< |
<property name="collect.jar" |
807 |
< |
location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/> |
806 |
> |
<target name="jsr166ydocs" |
807 |
> |
description="Builds javadocs to dist dir"> |
808 |
|
|
809 |
< |
<!-- |
810 |
< |
<property name="unchecked.option" value="-warnunchecked"/> |
630 |
< |
--> |
809 |
> |
<delete dir="${dist.jsr166yjavadocs.dir}"/> |
810 |
> |
<mkdir dir="${dist.jsr166yjavadocs.dir}"/> |
811 |
|
|
812 |
< |
<property name="unchecked.option" value="-Xlint:unchecked"/> |
812 |
> |
<javadoc destdir="${dist.jsr166yjavadocs.dir}" |
813 |
> |
packagenames="jsr166y.*" |
814 |
> |
link="${jdkapidocs.url}" |
815 |
> |
source="6" |
816 |
> |
bootclasspath="${bootclasspath6}" |
817 |
> |
sourcepath="${topsrc.dir}:${jdk6src.dir}" |
818 |
> |
executable="${javadoc7}" |
819 |
> |
additionalparam="-XDignore.symbol.file=true" /> |
820 |
|
|
821 |
< |
<condition property="warnunchecked.arg" value="${unchecked.option}"> |
635 |
< |
<istrue value="${gjc.warnunchecked}"/> |
636 |
< |
</condition> |
821 |
> |
</target> |
822 |
|
|
638 |
– |
<property name="warnunchecked.arg" value=""/> |
639 |
– |
|
640 |
– |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
641 |
– |
<istrue value="${build.nothreads}"/> |
642 |
– |
</condition> |
823 |
|
|
824 |
+ |
<target name="jsr166ydist" |
825 |
+ |
depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydocs" |
826 |
+ |
description="Puts all distributable products in single hierarchy"/> |
827 |
|
|
645 |
– |
<!-- |
646 |
– |
! Bootclasspath munging for source compilation. |
647 |
– |
--> |
828 |
|
|
649 |
– |
<path id="pre.bootclasspath"> |
650 |
– |
<!-- |
651 |
– |
<pathelement location="${javac.jar}"/> |
652 |
– |
--> |
653 |
– |
</path> |
829 |
|
|
830 |
< |
<path id="compile.bootclasspath"> |
831 |
< |
<pathelement location="${build.classes.dir}"/> |
657 |
< |
<!-- |
658 |
< |
<pathelement location="${collect.jar}"/> |
659 |
< |
--> |
660 |
< |
<pathelement location="${rt.jar}"/> |
661 |
< |
</path> |
830 |
> |
<target name="jsr166yclean" |
831 |
> |
description="Removes all build products"> |
832 |
|
|
833 |
< |
<!-- Flatten paths into platform-appropriate strings --> |
834 |
< |
<property name="pre.bootclasspath" refid="pre.bootclasspath"/> |
835 |
< |
<property name="compile.bootclasspath" refid="compile.bootclasspath"/> |
833 |
> |
<delete dir="${build.jsr166y.dir}"/> |
834 |
> |
<delete dir="${build.jsr166ylib.dir}"/> |
835 |
> |
|
836 |
> |
</target> |
837 |
|
|
838 |
|
|
839 |
< |
<!-- Common options in javac invocations --> |
840 |
< |
<!-- |
841 |
< |
<property name="gjc.args" |
671 |
< |
value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}" |
672 |
< |
/> |
673 |
< |
--> |
674 |
< |
<property name="gjc.args" value="${warnunchecked.arg} ${novariance.arg}"/> |
839 |
> |
|
840 |
> |
<target name="jsr166ydist-clean" |
841 |
> |
description="Removes all build and distribution products"> |
842 |
|
|
843 |
|
</target> |
844 |
|
|
845 |
+ |
<target name="jsr166ydist-jar" |
846 |
+ |
depends="jsr166yclean, jsr166yjar"> |
847 |
|
|
848 |
< |
<target name="prepare-src" |
680 |
< |
depends="configure-compiler" |
681 |
< |
if="prepare.src.dir"> |
848 |
> |
<copy file="${jsr166y.jar}" todir="${dist.dir}"/> |
849 |
|
|
850 |
< |
<mkdir dir="${prepare.src.dir}"/> |
851 |
< |
<copy todir="${prepare.src.dir}"> |
852 |
< |
<fileset dir="${src.dir}"> |
853 |
< |
<exclude name="java/lang/**"/> |
854 |
< |
</fileset> |
855 |
< |
</copy> |
850 |
> |
</target> |
851 |
> |
|
852 |
> |
|
853 |
> |
<!-- extra166y --> |
854 |
> |
|
855 |
> |
|
856 |
> |
<target name="extra166ycompile" |
857 |
> |
depends="configure-compiler, jsr166yjar" |
858 |
> |
description="Compiles extra166y sources"> |
859 |
> |
|
860 |
> |
<mkdir dir="${build.extra166y.dir}"/> |
861 |
> |
|
862 |
> |
<javac srcdir="${topsrc.dir}" |
863 |
> |
destdir="${build.extra166y.dir}" |
864 |
> |
debug="${build.debug}" |
865 |
> |
debuglevel="${build.debuglevel}" |
866 |
> |
deprecation="${build.deprecation}" |
867 |
> |
classpath="" |
868 |
> |
source="6" |
869 |
> |
bootclasspath="${jsr166y.jar}:${bootclasspath6}" |
870 |
> |
includeAntRuntime="false" |
871 |
> |
includeJavaRuntime="false" |
872 |
> |
executable="${javac7}" |
873 |
> |
fork="true"> |
874 |
> |
|
875 |
> |
<include name="extra166y/**/*.java"/> |
876 |
> |
<compilerarg line="${build.args}"/> |
877 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
878 |
> |
<compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial"/> |
879 |
> |
|
880 |
> |
</javac> |
881 |
|
|
882 |
|
</target> |
883 |
|
|
884 |
|
|
693 |
– |
<target name="configure-emulation"> |
885 |
|
|
886 |
< |
<condition property="build.emulation.true"> |
887 |
< |
<or> |
888 |
< |
<and> |
889 |
< |
<os family="windows"/> |
890 |
< |
<not> |
891 |
< |
<isset property="build.emulation"/> |
892 |
< |
</not> |
893 |
< |
</and> |
894 |
< |
<istrue value="${build.emulation}"/> |
704 |
< |
</or> |
705 |
< |
</condition> |
886 |
> |
<target name="extra166yjar" |
887 |
> |
depends="extra166ycompile" |
888 |
> |
description="Builds library jar from compiled sources"> |
889 |
> |
|
890 |
> |
<mkdir dir="${build.extra166ylib.dir}"/> |
891 |
> |
|
892 |
> |
<jar destfile="${extra166y.jar}" index="true"> |
893 |
> |
<fileset dir="${build.extra166y.dir}"/> |
894 |
> |
</jar> |
895 |
|
|
896 |
|
</target> |
897 |
|
|
898 |
|
|
710 |
– |
<target name="configure-tests" |
711 |
– |
depends="configure-compiler"> |
899 |
|
|
900 |
< |
<!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 --> |
901 |
< |
<available property="junit.available" |
715 |
< |
classname="junit.framework.Protectable"/> |
900 |
> |
<target name="extra166ydocs" |
901 |
> |
description="Builds javadocs to build dir"> |
902 |
|
|
903 |
< |
<fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests" |
904 |
< |
unless="junit.available"/> |
903 |
> |
<delete dir="${dist.extra166yjavadocs.dir}"/> |
904 |
> |
<mkdir dir="${dist.extra166yjavadocs.dir}"/> |
905 |
|
|
906 |
< |
<!-- Xalan --> |
907 |
< |
<available property="xalan.available" |
908 |
< |
classname="org.apache.xalan.Version"/> |
906 |
> |
<javadoc destdir="${dist.extra166yjavadocs.dir}" |
907 |
> |
packagenames="extra166y.*" |
908 |
> |
link="${jdkapidocs.url}" |
909 |
> |
source="6" |
910 |
> |
bootclasspath="${bootclasspath6}" |
911 |
> |
sourcepath="${topsrc.dir}:${jdk6src.dir}" |
912 |
> |
executable="${javadoc7}" |
913 |
> |
additionalparam="-XDignore.symbol.file=true" /> |
914 |
|
|
915 |
< |
<fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests" |
725 |
< |
unless="xalan.available"/> |
915 |
> |
</target> |
916 |
|
|
917 |
|
|
918 |
< |
<!-- |
919 |
< |
! Bootclasspath munging for testing, so JUnit can test our local |
920 |
< |
! modifications to java.*. |
731 |
< |
--> |
918 |
> |
<target name="extra166ydist" |
919 |
> |
depends="extra166ydist-clean, extra166ydist-jar, extra166ydocs" |
920 |
> |
description="Puts all distributable products in single hierarchy"/> |
921 |
|
|
733 |
– |
<path id="test.classpath"> |
734 |
– |
<pathelement location="${product.jar}"/> |
735 |
– |
<pathelement location="${rt.jar}"/> |
736 |
– |
<pathelement location="${build.testcases.dir}"/> |
737 |
– |
<pathelement location="${junit.jar}"/> |
738 |
– |
</path> |
922 |
|
|
740 |
– |
<path id="test.compile.bootclasspath"> |
741 |
– |
<pathelement location="${javac.jar}"/> |
742 |
– |
<pathelement location="${collect.jar}"/> |
743 |
– |
<pathelement location="${rt.jar}"/> |
744 |
– |
</path> |
923 |
|
|
924 |
< |
<path id="test.run.bootclasspath"> |
925 |
< |
<!-- |
748 |
< |
<pathelement location="${javac.jar}"/> |
749 |
< |
--> |
750 |
< |
<path refid="test.classpath"/> |
751 |
< |
</path> |
924 |
> |
<target name="extra166yclean" |
925 |
> |
description="Removes all build products"> |
926 |
|
|
927 |
< |
<!-- Flatten test classpaths into platform-appropriate strings --> |
928 |
< |
<property name="test.classpath" refid="test.classpath"/> |
755 |
< |
<property name="test.compile.bootclasspath" refid="test.compile.bootclasspath"/> |
756 |
< |
<property name="test.run.bootclasspath" refid="test.run.bootclasspath"/> |
927 |
> |
<delete dir="${build.extra166y.dir}"/> |
928 |
> |
<delete dir="${build.extra166ylib.dir}"/> |
929 |
|
|
930 |
|
</target> |
931 |
|
|
932 |
|
|
933 |
|
|
934 |
< |
<!-- Anthill targets --> |
934 |
> |
<target name="extra166ydist-clean" |
935 |
> |
description="Removes all build and distribution products"> |
936 |
> |
|
937 |
> |
</target> |
938 |
> |
|
939 |
> |
<target name="extra166ydist-jar" |
940 |
> |
depends="extra166yclean, extra166yjar"> |
941 |
> |
|
942 |
> |
<copy file="${extra166y.jar}" todir="${dist.dir}"/> |
943 |
|
|
764 |
– |
<target name="anthill-build"> |
765 |
– |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
766 |
– |
<arg value="-Xmx256000000"/> |
767 |
– |
<!-- classpath of new JVM --> |
768 |
– |
<arg value="-classpath"/> <arg path="${java.class.path}"/> |
769 |
– |
<!-- location of Ant home directory --> |
770 |
– |
<arg value="-Dant.home=${ant.home}"/> |
771 |
– |
<!-- the Ant main class --> |
772 |
– |
<arg value="org.apache.tools.ant.Main"/> |
773 |
– |
<!-- The build file --> |
774 |
– |
<arg value="-buildfile"/> <arg value="build.xml"/> |
775 |
– |
<!-- the target to build on the new Ant instance --> |
776 |
– |
<arg value="-DJAVA_HOME=${tiger.home}"/> |
777 |
– |
<arg value="do-anthill-build"/> |
778 |
– |
</exec> |
944 |
|
</target> |
780 |
– |
|
781 |
– |
<target name="do-anthill-build" |
782 |
– |
depends="jar, test, docs, dist-docs"/> |
945 |
|
|
946 |
< |
<target name="anthill-publish"> |
946 |
> |
<!-- jsr166e --> |
947 |
|
|
948 |
< |
<copy todir="${deployDir}/docs/private"> |
949 |
< |
<fileset dir="${build.javadocs.dir}"/> |
950 |
< |
</copy> |
948 |
> |
<target name="jsr166ecompile" |
949 |
> |
depends="configure-compiler" |
950 |
> |
description="Compiles jsr166e sources"> |
951 |
|
|
952 |
< |
<copy todir="${deployDir}/docs/public"> |
791 |
< |
<fileset dir="${dist.javadocs.dir}"/> |
792 |
< |
</copy> |
952 |
> |
<mkdir dir="${build.jsr166e.dir}"/> |
953 |
|
|
954 |
< |
<copy tofile="${deployDir}/index.html" |
955 |
< |
file="${basedir}/etc/anthill-index.html"/> |
954 |
> |
<javac srcdir="${topsrc.dir}" |
955 |
> |
destdir="${build.jsr166e.dir}" |
956 |
> |
debug="${build.debug}" |
957 |
> |
debuglevel="${build.debuglevel}" |
958 |
> |
deprecation="${build.deprecation}" |
959 |
> |
source="7" |
960 |
> |
classpath="" |
961 |
> |
includeAntRuntime="false" |
962 |
> |
includeJavaRuntime="false" |
963 |
> |
executable="${javac7}" |
964 |
> |
fork="true"> |
965 |
> |
|
966 |
> |
<include name="jsr166e/**/*.java"/> |
967 |
> |
<compilerarg line="${build.args}"/> |
968 |
> |
<compilerarg value="-XDignore.symbol.file=true"/> |
969 |
> |
<compilerarg value="-Xlint:all"/> |
970 |
|
|
971 |
< |
<copy todir="${deployDir}/notes"> |
798 |
< |
<fileset dir="${basedir}/etc/notes"/> |
799 |
< |
</copy> |
971 |
> |
</javac> |
972 |
|
|
973 |
|
</target> |
974 |
|
|
975 |
|
|
804 |
– |
<target name="ng" depends="test"> |
805 |
– |
<java classname="SuperfluousAbstract" fork="true"> |
976 |
|
|
977 |
< |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
977 |
> |
<target name="jsr166ejar" |
978 |
> |
depends="jsr166ecompile" |
979 |
> |
description="Builds library jar from compiled sources"> |
980 |
> |
|
981 |
> |
<mkdir dir="${build.jsr166elib.dir}"/> |
982 |
> |
|
983 |
> |
<jar destfile="${jsr166e.jar}" index="true"> |
984 |
> |
<fileset dir="${build.jsr166e.dir}"/> |
985 |
> |
</jar> |
986 |
> |
|
987 |
> |
</target> |
988 |
> |
|
989 |
> |
|
990 |
> |
|
991 |
> |
<target name="jsr166edocs" |
992 |
> |
description="Builds javadocs to build dir"> |
993 |
> |
|
994 |
> |
<delete dir="${dist.jsr166ejavadocs.dir}"/> |
995 |
> |
<mkdir dir="${dist.jsr166ejavadocs.dir}"/> |
996 |
> |
|
997 |
> |
<javadoc destdir="${dist.jsr166ejavadocs.dir}" |
998 |
> |
packagenames="jsr166e.*" |
999 |
> |
link="${jdkapidocs.url}" |
1000 |
> |
source="7" |
1001 |
> |
sourcepath="${topsrc.dir}:${jdk7src.dir}" |
1002 |
> |
executable="${javadoc7}" |
1003 |
> |
additionalparam="-XDignore.symbol.file=true" > |
1004 |
> |
</javadoc> |
1005 |
|
|
809 |
– |
</java> |
1006 |
|
</target> |
1007 |
|
|
1008 |
|
|
1009 |
+ |
<target name="jsr166edist" |
1010 |
+ |
depends="jsr166edist-clean, jsr166edist-jar, jsr166edocs" |
1011 |
+ |
description="Puts all distributable products in single hierarchy"/> |
1012 |
+ |
|
1013 |
+ |
|
1014 |
+ |
|
1015 |
+ |
<target name="jsr166eclean" |
1016 |
+ |
description="Removes all build products"> |
1017 |
+ |
|
1018 |
+ |
<delete dir="${build.jsr166e.dir}"/> |
1019 |
+ |
<delete dir="${build.jsr166elib.dir}"/> |
1020 |
+ |
|
1021 |
+ |
</target> |
1022 |
+ |
|
1023 |
+ |
|
1024 |
+ |
<target name="jsr166edist-clean" |
1025 |
+ |
description="Removes all build and distribution products"> |
1026 |
+ |
|
1027 |
+ |
</target> |
1028 |
+ |
|
1029 |
+ |
<target name="jsr166edist-jar" |
1030 |
+ |
depends="jsr166eclean, jsr166ejar"> |
1031 |
+ |
|
1032 |
+ |
<copy file="${jsr166e.jar}" todir="${dist.dir}"/> |
1033 |
+ |
|
1034 |
+ |
</target> |
1035 |
+ |
|
1036 |
|
</project> |