2 |
|
|
3 |
|
<description> |
4 |
|
Build file for JSR-166 |
5 |
+ |
|
6 |
+ |
Note that junit.jar must be in ${ant.home}/lib for the |
7 |
+ |
test target to work. [FIXME: This should be automatically |
8 |
+ |
enforced by this build file by failing with a message if |
9 |
+ |
junit.jar is not in the right place.] |
10 |
|
</description> |
11 |
|
|
12 |
|
<!-- Compilation options --> |
40 |
|
<property name="rt.jar" location="${java.home}/lib/rt.jar"/> |
41 |
|
|
42 |
|
<property name="gj.compiler.args" |
43 |
< |
value='-J-Xbootclasspath/p:${javac.jar} -bootclasspath ${collect.jar};${rt.jar} -gj' |
43 |
> |
value='-J-Xbootclasspath/p:${javac.jar} -gj' |
44 |
|
/> |
45 |
|
|
46 |
+ |
<path id="gj.compiler.bootclasspath"> |
47 |
+ |
<pathelement location="${collect.jar}"/> |
48 |
+ |
<pathelement location="${rt.jar}"/> |
49 |
+ |
</path> |
50 |
+ |
|
51 |
+ |
<path id="test.classpath"> |
52 |
+ |
<pathelement location="${product.jar}"/> |
53 |
+ |
</path> |
54 |
+ |
|
55 |
|
|
56 |
|
<target name="compile"> |
57 |
|
<mkdir dir="${build.classes.dir}"/> |
63 |
|
source="${build.sourcelevel}" |
64 |
|
fork="true"> |
65 |
|
|
66 |
+ |
<bootclasspath refid="gj.compiler.bootclasspath"/> |
67 |
|
<compilerarg line="${gj.compiler.args}"/> |
68 |
|
|
69 |
|
<!-- need this because srcdir is basedir! --> |
175 |
|
source="${build.sourcelevel}" |
176 |
|
fork="true"> |
177 |
|
|
178 |
+ |
<bootclasspath refid="gj.compiler.bootclasspath"/> |
179 |
|
<compilerarg line="${gj.compiler.args}"/> |
180 |
< |
|
165 |
< |
<classpath id="test.classpath"> |
166 |
< |
<pathelement location="${product.jar}"/> |
167 |
< |
<pathelement location="${junit.jar}"/> |
168 |
< |
</classpath> |
169 |
< |
|
180 |
> |
<classpath refid="test.classpath"/> |
181 |
|
<include name="**/*Test.java"/> |
182 |
|
|
183 |
|
</javac> |