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 |
+ |
<exclude name="lib/gjc/2.1/**"/> |
218 |
+ |
<exclude name="**/SyntaxTest.java"/> |
219 |
+ |
</jar> |
220 |
+ |
|
221 |
+ |
</target> |
222 |
|
|
223 |
|
<target name="clean" |
224 |
|
description="Removes all build products"> |
317 |
|
|
318 |
|
<jar destfile="${product.jar}" duplicate="add"> |
319 |
|
<fileset dir="${build.classes.dir}"> |
320 |
< |
<patternset refid="emulation.excludes"/> |
320 |
> |
<patternset refid="atomic.exclusion"/> |
321 |
> |
<patternset refid="unsafe.exclusion"/> |
322 |
|
</fileset> |
323 |
|
<fileset dir="${build.emulation.dir}"/> |
324 |
|
</jar> |
367 |
|
<copy todir="${build.filter.src.dir}"> |
368 |
|
<fileset dir="${src.dir}"> |
369 |
|
<exclude name="**/*.html"/> |
370 |
< |
<patternset refid="emulation.excludes"/> |
370 |
> |
<patternset refid="unsafe.exclusion"/> |
371 |
|
</fileset> |
372 |
|
<filterchain> |
373 |
|
|
565 |
|
--> |
566 |
|
|
567 |
|
<path id="pre.bootclasspath"> |
542 |
– |
<!-- <pathelement location="${src.dir}"/> --> |
568 |
|
<pathelement location="${javac.jar}"/> |
569 |
|
</path> |
570 |
|
|
571 |
|
<path id="compile.bootclasspath"> |
572 |
< |
<!-- <pathelement location="${src.dir}"/> --> |
572 |
> |
<pathelement location="${build.classes.dir}"/> |
573 |
|
<pathelement location="${collect.jar}"/> |
574 |
|
<pathelement location="${rt.jar}"/> |
575 |
|
</path> |
685 |
|
</target> |
686 |
|
|
687 |
|
|
688 |
+ |
<target name="ng" depends="test"> |
689 |
+ |
<java classname="SuperfluousAbstract" fork="true"> |
690 |
+ |
|
691 |
+ |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
692 |
+ |
|
693 |
+ |
</java> |
694 |
+ |
</target> |
695 |
+ |
|
696 |
+ |
|
697 |
|
</project> |