ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
(Generate patch)

Comparing jsr166/build.xml (file contents):
Revision 1.28 by tim, Wed May 28 13:37:59 2003 UTC vs.
Revision 1.57 by tim, Mon Sep 15 14:07:36 2003 UTC

# Line 1 | Line 1
1   <project name="jsr166" default="usage">
2  
3    <description>
4 <    Build file for JSR-166
4 > ------------------------------------------------------------------------------
5 >  Build file for JSR-166
6  
7 <    JUnit 3.8 or better must be in ${ant.home}/lib for the test target to work.
7 <  </description>
7 >  Usage: ant [target]
8  
9 +  User-specific settings are read from user.properties.
10 +  See user.properties.sample for an explanation of some useful settings.
11 + ------------------------------------------------------------------------------
12 +  </description>
13  
14 <  <target name="usage" description="Prints this message">
15 <    <echo>
12 < ant [target], where target is one of:
13 <
14 < usage       (default) Prints this message
15 < compile     Compiles all sources to build folder
16 < jar         Builds library jar from compiled sources
17 < test        Runs all tests (requires JUnit 1.8 in ${ant.home}/lib)
18 < docs        Builds javadocs with custom tags to build folder
19 < dist-docs   Builds javadocs without custom tags to dist folder
20 < dist        Puts all distributable products in single hierarchy
21 <
22 < clean       Removes all build products
23 < dist-clean  Removes all build and distribution products
24 <
25 < checkstyle  Reports on style errors in Java source (verbose, mostly chaff)
26 < doccheck    Reports on javadoc style errors (not working yet)
27 <    </echo>
14 >  <target name="usage" description="Advises user to run with -projecthelp">
15 >    <echo>Run "ant -projecthelp" for full usage information.</echo>
16    </target>
17  
18 +
19    <!-- User-specific settings -->
20    <property file="user.properties"/>
21  
33  <!-- Set build.warnings in user.properties to turn on -warnunchecked -->
34  <!-- <property name="build.warnings" value=""/> -->
35
22  
23    <!-- Compilation options -->
24    <property name="build.sourcelevel"    value="1.5"/>
# Line 44 | Line 30 | ant [target], where target is one of:
30    <!-- Build locations -->
31    <property name="build.dir"            location="build"/>
32    <property name="build.classes.dir"    location="${build.dir}/classes"/>
47  <property name="build.emulation.dir"  location="${build.dir}/emulation"/>
33    <property name="build.testcases.dir"  location="${build.dir}/testcases"/>
34    <property name="build.lib.dir"        location="${build.dir}/lib"/>
35    <property name="build.ant.dir"        location="${build.dir}/ant"/>
36    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>
37 +  <property name="build.sinjdocs.dir"   location="${build.dir}/sinjdocs"/>
38    <property name="build.stripped.dir"   location="${build.dir}/stripped"/>
39    <property name="build.reports.dir"    location="${build.dir}/reports"/>
40    <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>
41    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>
42 +  <property name="build.filter.doccheck.dir" location="${build.dir}/filterdocchk"/>
43  
44    <!-- Source locations -->
45    <property name="src.dir"              location="${basedir}/src/main"/>
59  <property name="emulation.src.dir"    location="${basedir}/src/emulation"/>
46    <property name="test.src.dir"         location="${basedir}/src/test"/>
47    <property name="ant.src.dir"          location="${basedir}/etc/ant"/>
48    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>
# Line 68 | Line 54 | ant [target], where target is one of:
54  
55    <!-- Jar locations -->
56    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
71  <property name="javac.jar"            location="${lib.dir}/javac.jar"/>
72  <property name="collect.jar"          location="${lib.dir}/collect.jar"/>
57    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>
58    <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>
59 +  <property name="sinjdoc.jar"          location="${lib.dir}/sinjdoc.jar"/>
60  
61  
62 <
63 <  <!--
79 <   ! Bootclasspath munging for source compilation.
80 <   -->
81 <
82 <  <path id="javac.bootclasspath.prefix">
83 <    <!-- <pathelement location="${src.dir}"/> -->
84 <    <pathelement location="${javac.jar}"/>
85 <  </path>
86 <
87 <  <path id="javac.bootclasspath">
88 <    <!-- <pathelement location="${src.dir}"/> -->
89 <    <pathelement location="${collect.jar}"/>
90 <    <pathelement location="${rt.jar}"/>
91 <  </path>
92 <
93 <  <!-- Flatten bootclasspath prefix into a platform-appropriate string -->
94 <  <property name="javac.bootclasspath.prefix" refid="javac.bootclasspath.prefix"/>
95 <
96 <  <!-- Turn the flattened bootclasspath prefix into a javac argument -->
97 <  <property name="javac.args" value='-J-Xbootclasspath/p:${javac.bootclasspath.prefix}'/>
98 <
99 <
100 <
101 <  <!--
102 <   ! Bootclasspath munging for testing, so JUnit can test our local
103 <   ! modifications to java.*.
104 <   -->
105 <
106 <  <path id="test.classpath">
107 <    <pathelement location="${product.jar}"/>
108 <    <pathelement location="${build.testcases.dir}"/>
109 <    <pathelement location="${junit.jar}"/>
110 <  </path>
111 <
112 <  <!-- Flatten test classpath into a platform-appropriate string -->
113 <  <property name="test.classpath" refid="test.classpath"/>
114 <
115 <  <!-- Turn the flattened test classpath into a javac argument -->
116 <  <property name="test.javac.args" value='-Xbootclasspath/p:${test.classpath}'/>
117 <
118 <
119 <
120 <  <!-- Files excluded from emulation and dist-docs -->
121 <  <patternset id="emulation.excludes">
62 >  <!-- Files excluded from dist-docs -->
63 >  <patternset id="docs.exclusion">
64      <exclude name="java/util/Random.*"/>
65      <exclude name="sun/misc/Unsafe.*"/>
66    </patternset>
# Line 128 | Line 70 | ant [target], where target is one of:
70    <!-- Main targets -->
71  
72    <target name="compile"
73 <          depends="init"
73 >          depends="init, configure-compiler, prepare-src"
74            description="Compiles main sources to build folder">
75  
76 +    <property name="prepare.src.dir" value="${src.dir}"/>
77 +
78      <mkdir dir="${build.classes.dir}"/>
79  
80 <    <javac srcdir="${src.dir}"
80 > <!--
81 >    <echo>javac ${build.args}</echo>
82 > -->
83 >
84 >    <javac srcdir="${prepare.src.dir}"
85            destdir="${build.classes.dir}"
86              debug="${build.debug}"
87         debuglevel="${build.debuglevel}"
# Line 141 | Line 89 | ant [target], where target is one of:
89             source="${build.sourcelevel}"
90               fork="true">
91  
92 <      <bootclasspath refid="javac.bootclasspath"/>
145 <      <compilerarg line="${javac.args} ${build.warnings.option}"/>
92 >      <compilerarg    line="${build.args}"/>
93  
94      </javac>
95  
# Line 150 | Line 97 | ant [target], where target is one of:
97  
98  
99    <target name="jar"
100 <          depends="native-jar, emulation-jar"
100 >          depends="init-jar, native-jar"
101            description="Builds library jar from compiled sources"/>
102  
103  
104    <target name="test"
105 <          depends="init, check-junit, report-tests"
106 <          description="Runs all tests (requires JUnit 3.8+ in ${ant.home}/lib)" />
105 >          depends="init, configure-tests, report-tests"
106 >          description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
107  
108  
109    <target name="checkstyle"
# Line 175 | Line 122 | ant [target], where target is one of:
122  
123  
124    <target name="doccheck"
125 <          depends="filter-src"
126 <          description="Reports on javadoc style errors (not working yet)">
125 >          depends="filter-doccheck"
126 >          description="Reports on javadoc style errors">
127  
128      <delete dir="${build.doccheck.dir}"/>
129      <mkdir dir="${build.doccheck.dir}"/>
# Line 184 | Line 131 | ant [target], where target is one of:
131      <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck"
132           docletpath="${lib.dir}/doccheck.jar"
133              destdir="${build.doccheck.dir}">
134 <      <packageset dir="${build.filter.src.dir}"/>
134 >      <packageset dir="${build.filter.doccheck.dir}"/>
135      </javadoc>
136  
137 +    <echo>DocCheck output is in ${build.doccheck.dir}</echo>
138 +
139    </target>
140  
141  
# Line 203 | Line 152 | ant [target], where target is one of:
152                source="${build.docsourcelevel}">
153  
154        <tag name="revised" description="Last revised:"/>
155 <      <tag name="spec" description="Specified by:"/>
156 <      <tag name="editor" description="Last edited by:"/>
157 <      <tag name="fixme" description="FIX ME:"/>
155 >      <tag name="spec"    description="Specified by:"/>
156 >      <tag name="editor"  description="Last edited by:"/>
157 >      <tag name="fixme"   description="FIX ME:"/>
158 >
159        <packageset dir="${build.filter.src.dir}"/>
160  
161      </javadoc>
# Line 213 | Line 163 | ant [target], where target is one of:
163    </target>
164  
165  
166 <  <!--
167 <   # javac -s doesn't reliably generate compilable code. It generates
168 <   # bridge methods (marked as "synthetic") that can have identical
169 <   # signatures to existing methods except for the return value.
170 <   -->
166 >  <target name="sinjdocs"
167 >          depends="configure-tests"
168 >          description="Builds javadocs with custom tags to build folder">
169 >
170 >    <delete dir="${build.sinjdocs.dir}"/>
171 >    <mkdir dir="${build.sinjdocs.dir}"/>
172 >
173 >    <java classname="net.cscott.sinjdoc.Main" fork="true">
174 >
175 >      <jvmarg value="-Xbootclasspath/p:${test.bootclasspath}"/>
176 >
177 >      <classpath>
178 >        <pathelement location="${sinjdoc.jar}"/>
179 >        <pathelement location="${lib.dir}/jutil.jar"/>
180 >        <pathelement location="${lib.dir}/cup.jar"/>
181 >        <path refid="test.classpath"/>
182 >      </classpath>
183 >
184 >      <!-- <arg value="-help"/> -->
185 >      <!-- <arg value="-verbose"/> -->
186 >      <!-- <arg value="-link"/>  <arg value="http://java.sun.com/j2se/1.4.1/docs/api"/> -->
187 >      
188 >      <arg value="-d"/>          <arg value="${build.sinjdocs.dir}"/>
189 >      <arg value="-sourcepath"/> <arg value="${src.dir}"/>
190 >      <arg value="-overview"/>   <arg value="${src.dir}/intro.html"/>
191 >      <arg value="-source"/>     <arg value="${build.sourcelevel}"/>
192 >      
193 >      <arg value="java.lang"/>
194 >      <arg value="java.util"/>
195 >      <arg value="java.util.concurrent"/>
196 >      <arg value="java.util.concurrent.atomic"/>
197 >      <arg value="java.util.concurrent.locks"/>
198 >
199 >
200 >    </java>
201 >
202 >  </target>
203 >
204 >
205    <target name="strip"
206 <          depends="init">
206 >          depends="init, configure-compiler"
207 >          description="Strip generics from java source (not working yet)">
208  
209      <mkdir dir="${build.stripped.dir}"/>
210  
211 +    <!--
212 +     # javac -s doesn't reliably generate compilable code. It generates
213 +     # bridge methods (marked as "synthetic") that can have identical
214 +     # signatures to existing methods except for the return value.
215 +     -->
216      <javac srcdir="${src.dir}"
217            destdir="${build.stripped.dir}"
218              debug="${build.debug}"
# Line 231 | Line 221 | ant [target], where target is one of:
221             source="${build.sourcelevel}"
222               fork="true">
223  
224 <      <bootclasspath refid="javac.bootclasspath"/>
235 <      <compilerarg line="${javac.args} ${build.warnings.option} -s"/>
224 >      <compilerarg    line="${build.args} -s"/>
225  
226      </javac>
227  
# Line 243 | Line 232 | ant [target], where target is one of:
232            depends="init, dist-clean, dist-jar, dist-docs"
233            description="Puts all distributable products in single hierarchy"/>
234  
235 +  <target name="release"
236 +          depends="dist"
237 +          description="Puts entire CVS tree, plus distribution productions, in a jar">
238 +
239 + <!--
240 +    #keep build dir? - dl
241 +    <delete dir="${build.dir}"/>
242 + -->
243 +    <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
244 +
245 +    <jar basedir="${basedir}" destfile="${release.jar}">
246 +      <exclude name="${release.jar}"/>
247 +      <exclude name="user.properties"/>
248 +      <exclude name="etc/notes/**"/>
249 +      <exclude name="**/SyntaxTest.java"/>
250 +    </jar>
251 +
252 +  </target>
253  
254    <target name="clean"
255            description="Removes all build products">
# Line 284 | Line 291 | ant [target], where target is one of:
291  
292    <!-- Internal targets -->
293  
287  <target name="set-warnings-if" if="build.warnings">
288
289    <property name="build.warnings.option" value="-warnunchecked"/>
290
291  </target>
292
293
294  <target name="set-warnings-unless" unless="build.warnings">
295
296    <property name="build.warnings.option" value=""/>
297
298  </target>
299
294  
295 <  <target name="init"
302 <          depends="set-warnings-if, set-warnings-unless">
295 >  <target name="init">
296  
297      <!-- Version is kept in a separate file -->
298      <loadfile property="version" srcFile="version.properties"/>
299      <echo>Building JSR-166 version ${version}</echo>
300 +    <echo>java.home is ${java.home}</echo>
301  
302    </target>
303  
# Line 316 | Line 310 | ant [target], where target is one of:
310  
311  
312    <target name="native-jar"
313 <          depends="compile, init-jar"
320 <          unless="build.emulation">
313 >          depends="compile">
314  
315      <jar destfile="${product.jar}">
316        <fileset dir="${build.classes.dir}"/>
# Line 326 | Line 319 | ant [target], where target is one of:
319    </target>
320  
321  
329  <target name="base-jar"
330          depends="compile, init-jar">
331
332    <jar destfile="${product.jar}">
333      <fileset dir="${build.classes.dir}">
334        <patternset refid="emulation.excludes"/>
335      </fileset>
336    </jar>
337
338  </target>
339
340
341  <target name="compile-emulation"
342          depends="init"
343          if="build.emulation">
344
345    <mkdir dir="${build.emulation.dir}"/>
346
347    <javac srcdir="${emulation.src.dir}"
348          destdir="${build.emulation.dir}"
349            debug="${build.debug}"
350       debuglevel="${build.debuglevel}"
351      deprecation="${build.deprecation}"
352           source="${build.sourcelevel}"
353             fork="true">
354
355      <bootclasspath refid="javac.bootclasspath"/>
356      <compilerarg line="${javac.args} ${build.warnings.option}"/>
357
358    </javac>
359
360  </target>
361
362
363  <target name="emulation-jar"
364          depends="base-jar, compile-emulation"
365          if="build.emulation">
366
367    <jar destfile="${product.jar}" update="true" duplicate="add">
368      <fileset dir="${build.emulation.dir}"/>
369    </jar>
370
371  </target>
372
373
322    <target name="dist-jar"
323            depends="clean, jar">
324  
# Line 399 | Line 347 | ant [target], where target is one of:
347  
348      <copy todir="${build.filter.src.dir}">
349        <fileset dir="${src.dir}">
350 <        <patternset refid="emulation.excludes"/>
350 >        <include name="**/*.html"/>
351 >      </fileset>
352 >    </copy>
353 >
354 >    <copy todir="${build.filter.src.dir}">
355 >      <fileset dir="${src.dir}">
356 >        <exclude name="**/*.html"/>
357 >        <patternset refid="docs.exclusion"/>
358        </fileset>
359        <filterchain>
360 +
361 +        <!--
362 +         # This filter gets rid of angle-bracketed type parameters
363 +         # so that javadoc can run on the result. The following
364 +         # heuristic seems to work:
365 +         #
366 +         # For all lines not starting with space(s)-asterisk-space(s),
367 +         #   replace <something> with a space, where there may be more
368 +         #   than one right angle bracket at the end, and "something"
369 +         #   must not contain parens or pipes. (This may need some
370 +         #   tweaking.)
371 +         -->
372 +
373          <filterreader classname="jsr166.ant.filters.ReplaceFilter"
374                        classpath="${build.ant.dir}">
407          <!--
408           # These arguments are to get rid of angle-bracketed type
409           # parameters so that javadoc can run on the result. The
410           # following heuristic that seems to work:
411           #
412           # For all lines not starting with space(s)-asterisk-space(s),
413           #   replace <something> with a space, where there may be more
414           #   than one right angle bracket at the end, and "something"
415           #   must not contain parens or pipes. (This may need some
416           #   tweaking.)
417           -->
375            <param name="notmatching" value="^\s+\*\s.*$"/>
376 <          <param name="pattern" value="&lt;[^|>()]+?>+"/>
376 >          <param name="pattern"     value="&lt;[^|>()]+?>+"/>
377            <param name="replacement" value=" "/>
378          </filterreader>
379 +
380 +      </filterchain>
381 +    </copy>
382 +
383 +  </target>
384 +
385 +
386 +
387 +
388 +  <target name="filter-doccheck"
389 +          depends="filter-src">
390 +
391 +    <mkdir dir="${build.filter.doccheck.dir}"/>
392 +
393 +    <copy todir="${build.filter.doccheck.dir}">
394 +      <fileset dir="${build.filter.src.dir}">
395 +        <include name="**/*.html"/>
396 +      </fileset>
397 +    </copy>
398 +
399 +    <property name="generic.declarations"
400 +             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 {}"
401 +    />
402 +
403 +    <copy todir="${build.filter.doccheck.dir}">
404 +      <fileset dir="${build.filter.src.dir}">
405 +        <exclude name="**/*.html"/>
406 +      </fileset>
407 +      <filterchain>
408 +        <!--
409 +         # These two filters try to make the source look like
410 +         # something that doccheck can process. The first removes
411 +         # -source 1.4 assertions and the second adds in a bunch
412 +         # of single letter public nested marker interfaces so that
413 +         # the generic type parameters are recognized.
414 +         -->
415 +
416 +        <filterreader classname="jsr166.ant.filters.ReplaceFilter"
417 +                      classpath="${build.ant.dir}">
418 +          <param name="matching"    value="^\s*assert[\s ].*$"/>
419 +          <param name="pattern"     value="assert"/>
420 +          <param name="replacement" value="//assert"/>
421 +        </filterreader>
422 +
423          <filterreader classname="jsr166.ant.filters.ReplaceFilter"
424                        classpath="${build.ant.dir}">
425 <          <!--
426 <           # These arguments are to uncomment lines beginning with
427 <           # "//@" so that javadoc can see imports that are needed
427 <           # to resolve links but that shouldn't be in the compiled
428 <           # code.
429 <           -->
430 <          <param name="matching" value="^//@.*$"/>
431 <          <param name="pattern" value="^//@"/>
432 <          <param name="replacement" value=""/>
425 >          <param name="matching"    value="^([^*]*(class|interface|implements) .*|)\{.*$"/>
426 >          <param name="pattern"     value="$"/>
427 >          <param name="replacement" value=" ${generic.declarations}"/>
428          </filterreader>
429 +
430        </filterchain>
431      </copy>
432  
# Line 442 | Line 438 | ant [target], where target is one of:
438  
439      <mkdir dir="${build.testcases.dir}"/>
440  
441 + <!--
442 +    <echo>javac ${build.args}</echo>
443 +    <echo>classpath="${test.classpath}"</echo>
444 + -->
445 +
446      <javac srcdir="${test.src.dir}"
447            destdir="${build.testcases.dir}"
448              debug="${build.debug}"
# Line 450 | Line 451 | ant [target], where target is one of:
451             source="${build.sourcelevel}"
452               fork="true">
453  
454 <      <bootclasspath refid="javac.bootclasspath"/>
454 <      <compilerarg line="${javac.args} ${build.warnings.option}"/>
454 >      <compilerarg line="${build.args}"/>
455        <classpath refid="test.classpath"/>
456 +      
457 +      <include name="java/**"/>
458 +      <include name="jsr166/**"/>
459  
460      </javac>
461  
# Line 474 | Line 477 | ant [target], where target is one of:
477                      dir="${build.reports.dir}"
478                     fork="true">
479  
480 <      <jvmarg value="${test.javac.args}"/>
480 >      <jvmarg value="-Xbootclasspath:${test.bootclasspath}"/>
481  
482        <formatter type="xml"/>
483  
484        <batchtest todir="${build.reports.dir}">
485          <fileset dir="${test.src.dir}">
486 <          <include name="**/${testcase}Test.java"/>
486 >          <include name="java/**/${testcase}Test.java"/>
487 >          <include name="jsr166/**/${testcase}Test.java"/>
488          </fileset>
489        </batchtest>
490  
# Line 492 | Line 496 | ant [target], where target is one of:
496    <target name="report-tests"
497            depends="run-tests">
498  
499 <    <!-- Sets junit.report.format to frames if Xalan is present,
499 >    <!-- Sets junit.report.format to frames if redirection is present,
500           otherwise sets it to noframes. -->
501      <available property="junit.report.format"
502                    value="frames"
# Line 515 | Line 519 | ant [target], where target is one of:
519    </target>
520  
521  
522 <  <target name="check-junit">
522 >  <target name="configure-compiler">
523 >
524 >    <property name="unchecked.option" value="-Xlint:unchecked"/>
525 >
526 >    <condition property="warnunchecked.arg" value="${unchecked.option}">
527 >      <istrue value="${build.warnunchecked}"/>
528 >    </condition>
529 >
530 >    <property name="warnunchecked.arg" value=""/>
531 >    
532 >    <condition property="prepare.src.dir" value="${build.dir}/prepare-src">
533 >      <istrue value="${build.nothreads}"/>
534 >    </condition>
535 >
536 >
537 >    <!-- Common options in javac invocations -->
538 >    <property name="build.args" value="${warnunchecked.arg}"/>
539 >
540 >  </target>
541 >
542 >
543 >  <target name="prepare-src"
544 >          depends="configure-compiler"
545 >          if="prepare.src.dir">
546 >
547 >    <mkdir dir="${prepare.src.dir}"/>
548 >    <copy todir="${prepare.src.dir}">
549 >      <fileset dir="${src.dir}">
550 >        <exclude name="java/lang/**"/>
551 >      </fileset>
552 >    </copy>
553 >
554 >  </target>
555 >
556 >
557 >  <target name="configure-tests"
558 >       depends="configure-compiler">
559  
560      <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
561      <available property="junit.available"
# Line 524 | Line 564 | ant [target], where target is one of:
564      <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
565            unless="junit.available"/>
566  
567 +    <!-- Xalan -->
568 +    <available property="xalan.available"
569 +               classname="org.apache.xalan.Version"/>
570 +
571 +    <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
572 +          unless="xalan.available"/>
573 +
574 +
575 +    <!--
576 +     ! Bootclasspath munging for testing, so JUnit can test our local
577 +     ! modifications to java.*.
578 +     -->
579 +
580 +    <path id="test.classpath">
581 +      <pathelement location="${product.jar}"/>
582 +      <pathelement location="${rt.jar}"/>
583 +      <pathelement location="${junit.jar}"/>
584 +      <pathelement location="${build.testcases.dir}"/>
585 +    </path>
586 +
587 +    <path id="test.bootclasspath">
588 +      <path refid="test.classpath"/>
589 +    </path>
590 +
591 +    <!-- Flatten test classpaths into platform-appropriate strings -->
592 +    <property name="test.classpath"         refid="test.classpath"/>
593 +    <property name="test.bootclasspath"     refid="test.bootclasspath"/>
594 +
595    </target>
596  
597  
598  
599    <!-- Anthill targets -->
600  
601 <  <target name="anthill-build"
601 >  <target name="anthill-build">
602 >  
603 >    <!-- Override this in user.properties -->
604 >    <property name="tiger.home" location="e:/j2sdk1.5.0"/>
605 >    
606 >    <exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java">
607 >      <arg value="-Xmx256000000"/>
608 >      <!-- classpath of new JVM -->
609 >      <arg value="-classpath"/> <arg path="${java.class.path}"/>
610 >      <!-- location of Ant home directory -->
611 >      <arg value="-Dant.home=${ant.home}"/>
612 >      <!-- the Ant main class -->
613 >      <arg value="org.apache.tools.ant.Main"/>
614 >      <!-- The build file -->
615 >      <arg value="-buildfile"/>  <arg value="build.xml"/>
616 >      <!-- the target to build on the new Ant instance -->
617 >      <arg value="-DJAVA_HOME=${tiger.home}"/>
618 >      <arg value="do-anthill-build"/>
619 >    </exec>
620 >  </target>
621 >  
622 >  <target name="do-anthill-build"
623            depends="jar, test, docs, dist-docs"/>
624  
625    <target name="anthill-publish">
# Line 553 | Line 642 | ant [target], where target is one of:
642    </target>
643  
644  
645 +  <target name="ng" depends="test">
646 +    <java classname="SuperfluousAbstract" fork="true">
647 +
648 +      <jvmarg value="-Xbootclasspath/p:${test.bootclasspath}"/>
649 +
650 +    </java>
651 +  </target>
652 +
653 +
654   </project>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines