59 |
|
|
60 |
|
|
61 |
|
|
62 |
< |
<!-- Files excluded from emulation and dist-docs --> |
63 |
< |
<patternset id="emulation.excludes"> |
62 |
> |
<!-- Files excluded from dist-docs and emulation jar --> |
63 |
> |
<patternset id="unsafe.exclusion"> |
64 |
|
<exclude name="java/util/Random.*"/> |
65 |
|
<exclude name="sun/misc/Unsafe.*"/> |
66 |
|
</patternset> |
67 |
|
|
68 |
+ |
<!-- Files excludes from emulation jar --> |
69 |
+ |
<patternset id="atomic.exclusion"> |
70 |
+ |
<exclude name="java/util/concurrent/atomic/AtomicBoolean*"/> |
71 |
+ |
<exclude name="java/util/concurrent/atomic/AtomicInteger*"/> |
72 |
+ |
<exclude name="java/util/concurrent/atomic/AtomicLong*"/> |
73 |
+ |
<exclude name="java/util/concurrent/atomic/AtomicReference*"/> |
74 |
+ |
</patternset> |
75 |
+ |
|
76 |
|
|
77 |
|
|
78 |
|
<!-- Main targets --> |
202 |
|
depends="init, dist-clean, dist-jar, dist-docs" |
203 |
|
description="Puts all distributable products in single hierarchy"/> |
204 |
|
|
205 |
+ |
<target name="release" |
206 |
+ |
depends="dist" |
207 |
+ |
description="Puts entire CVS tree, plus distribution productions, in a jar"> |
208 |
+ |
|
209 |
+ |
<delete dir="${build.dir}"/> |
210 |
+ |
|
211 |
+ |
<property name="release.jar" value="dist/jsr166-${version}-dist.jar"/> |
212 |
+ |
|
213 |
+ |
<jar basedir="${basedir}" destfile="${release.jar}"> |
214 |
+ |
<exclude name="${release.jar}"/> |
215 |
+ |
<exclude name="user.properties"/> |
216 |
+ |
<exclude name="etc/notes/**"/> |
217 |
+ |
</jar> |
218 |
+ |
|
219 |
+ |
</target> |
220 |
|
|
221 |
|
<target name="clean" |
222 |
|
description="Removes all build products"> |
315 |
|
|
316 |
|
<jar destfile="${product.jar}" duplicate="add"> |
317 |
|
<fileset dir="${build.classes.dir}"> |
318 |
< |
<patternset refid="emulation.excludes"/> |
318 |
> |
<patternset refid="atomic.exclusion"/> |
319 |
> |
<patternset refid="unsafe.exclusion"/> |
320 |
|
</fileset> |
321 |
|
<fileset dir="${build.emulation.dir}"/> |
322 |
|
</jar> |
365 |
|
<copy todir="${build.filter.src.dir}"> |
366 |
|
<fileset dir="${src.dir}"> |
367 |
|
<exclude name="**/*.html"/> |
368 |
< |
<patternset refid="emulation.excludes"/> |
368 |
> |
<patternset refid="unsafe.exclusion"/> |
369 |
|
</fileset> |
370 |
|
<filterchain> |
371 |
|
|
567 |
|
</path> |
568 |
|
|
569 |
|
<path id="compile.bootclasspath"> |
570 |
+ |
<pathelement location="${build.classes.dir}"/> |
571 |
|
<pathelement location="${collect.jar}"/> |
572 |
|
<pathelement location="${rt.jar}"/> |
573 |
|
</path> |