35 |
|
<property name="rt.jar" location="${java.home}/lib/rt.jar"/> |
36 |
|
|
37 |
|
<property name="gj.compiler.args" |
38 |
< |
value='-J-Xbootclasspath/p:${javac.jar} -bootclasspath ${collect.jar};${rt.jar} -gj' |
38 |
> |
value='-J-Xbootclasspath/p:${javac.jar} -gj' |
39 |
|
/> |
40 |
|
|
41 |
+ |
<path id="gj.compiler.bootclasspath"> |
42 |
+ |
<pathelement location="${collect.jar}"/> |
43 |
+ |
<pathelement location="${rt.jar}"/> |
44 |
+ |
</path> |
45 |
+ |
|
46 |
+ |
<path id="test.classpath"> |
47 |
+ |
<pathelement location="${product.jar}"/> |
48 |
+ |
<pathelement location="${junit.jar}"/> |
49 |
+ |
</path> |
50 |
+ |
|
51 |
|
|
52 |
|
<target name="compile"> |
53 |
|
<mkdir dir="${build.classes.dir}"/> |
59 |
|
source="${build.sourcelevel}" |
60 |
|
fork="true"> |
61 |
|
|
62 |
+ |
<bootclasspath refid="gj.compiler.bootclasspath"/> |
63 |
|
<compilerarg line="${gj.compiler.args}"/> |
64 |
|
|
65 |
|
<!-- need this because srcdir is basedir! --> |
171 |
|
source="${build.sourcelevel}" |
172 |
|
fork="true"> |
173 |
|
|
174 |
+ |
<bootclasspath refid="gj.compiler.bootclasspath"/> |
175 |
|
<compilerarg line="${gj.compiler.args}"/> |
176 |
< |
|
165 |
< |
<classpath id="test.classpath"> |
166 |
< |
<pathelement location="${product.jar}"/> |
167 |
< |
<pathelement location="${junit.jar}"/> |
168 |
< |
</classpath> |
169 |
< |
|
176 |
> |
<classpath refid="test.classpath"/> |
177 |
|
<include name="**/*Test.java"/> |
178 |
|
|
179 |
|
</javac> |