[cvs] / jsr166 / build.xml Repository:
ViewVC logotype

Diff of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37, Fri May 30 03:24:18 2003 UTC revision 1.96, Mon Jan 14 21:06:16 2013 UTC
# Line 21  Line 21 
21    
22    
23    <!-- Compilation options -->    <!-- Compilation options -->
24    <property name="build.sourcelevel"    value="1.5"/>    <property name="build.sourcelevel"    value="1.6"/>
   <property name="build.docsourcelevel" value="1.4"/>  
25    <property name="build.debug"          value="true"/>    <property name="build.debug"          value="true"/>
26    <property name="build.debuglevel"     value="source,lines,vars"/>    <property name="build.debuglevel"     value="source,lines,vars"/>
27    <property name="build.deprecation"    value="false"/>    <property name="build.deprecation"    value="false"/>
# Line 30  Line 29 
29    <!-- Build locations -->    <!-- Build locations -->
30    <property name="build.dir"            location="build"/>    <property name="build.dir"            location="build"/>
31    <property name="build.classes.dir"    location="${build.dir}/classes"/>    <property name="build.classes.dir"    location="${build.dir}/classes"/>
   <property name="build.emulation.dir"  location="${build.dir}/emulation"/>  
32    <property name="build.testcases.dir"  location="${build.dir}/testcases"/>    <property name="build.testcases.dir"  location="${build.dir}/testcases"/>
33      <property name="build.loops.dir"             location="${build.dir}/loops"/>
34    <property name="build.lib.dir"        location="${build.dir}/lib"/>    <property name="build.lib.dir"        location="${build.dir}/lib"/>
   <property name="build.ant.dir"        location="${build.dir}/ant"/>  
35    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>
   <property name="build.stripped.dir"   location="${build.dir}/stripped"/>  
36    <property name="build.reports.dir"    location="${build.dir}/reports"/>    <property name="build.reports.dir"    location="${build.dir}/reports"/>
37    <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>  
38    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>    <property name="build.jdk7.dir"              location="${build.dir}/jdk7"/>
39      <property name="build.jdk7.lib.dir"          location="${build.jdk7.dir}"/>
40      <property name="build.jdk7.classes.dir"      location="${build.jdk7.dir}/classes"/>
41      <property name="build.jdk7.docs.dir"         location="${build.jdk7.dir}/docs"/>
42    
43      <property name="build.jsr166x.dir"           location="${build.dir}/jsr166x"/>
44      <property name="build.jsr166xlib.dir"        location="${build.dir}/jsr166xlib"/>
45      <property name="build.jsr166xjavadocs.dir"   location="${build.dir}/jsr166xjavadocs"/>
46    
47      <property name="build.jsr166y.dir"           location="${build.dir}/jsr166y"/>
48      <property name="build.jsr166ylib.dir"        location="${build.dir}/jsr166ylib"/>
49      <property name="build.jsr166yjavadocs.dir"   location="${build.dir}/jsr166yjavadocs"/>
50    
51      <property name="build.jsr166e.dir"           location="${build.dir}/jsr166e"/>
52      <property name="build.jsr166elib.dir"        location="${build.dir}/jsr166elib"/>
53      <property name="build.jsr166ejavadocs.dir"   location="${build.dir}/jsr166ejavadocs"/>
54    
55      <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>
56      <property name="build.extra166ylib.dir"      location="${build.dir}/extra166ylib"/>
57      <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>
58    
59      <!-- JDK binary locations -->
60      <property name="jdks.home"  location="${user.home}/jdk"/>
61    
62      <macrodef name="defjdklocations">
63        <attribute name="v"/>
64        <sequential>
65        <property name="jdk@{v}.home"  location="${jdks.home}/jdk@{v}"/>
66        <property name="javac@{v}"     location="${jdk@{v}.home}/bin/javac"/>
67        <property name="javadoc@{v}"   location="${jdk@{v}.home}/bin/javadoc"/>
68        <property name="bootdir@{v}"   location="${jdk@{v}.home}/jre/lib"/>
69        <property name="bootclasspath@{v}"
70         value="${bootdir@{v}}/resources.jar:${bootdir@{v}}/rt.jar:${bootdir@{v}}/jsse.jar:${bootdir@{v}}/jce.jar:${bootdir@{v}}/:${bootdir@{v}}/charsets.jar"/>
71        </sequential>
72      </macrodef>
73    
74      <defjdklocations v="6"/>
75      <defjdklocations v="7"/>
76      <defjdklocations v="8"/>
77    
78    <!-- Source locations -->    <!-- Source locations -->
79    <property name="src.dir"              location="${basedir}/src/main"/>    <property name="src.dir"              location="${basedir}/src/main"/>
   <property name="emulation.src.dir"    location="${basedir}/src/emulation"/>  
80    <property name="test.src.dir"         location="${basedir}/src/test"/>    <property name="test.src.dir"         location="${basedir}/src/test"/>
81    <property name="ant.src.dir"          location="${basedir}/etc/ant"/>    <property name="loops.src.dir"        location="${basedir}/src/loops"/>
82    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>    <property name="tck.src.dir"          location="${test.src.dir}/tck"/>
83      <property name="jtreg.src.dir"        location="${test.src.dir}/jtreg"/>
84    <property name="lib.dir"              location="${basedir}/lib"/>    <property name="lib.dir"              location="${basedir}/lib"/>
85    <property name="dist.dir"             location="${basedir}/dist"/>    <property name="dist.dir"             location="${basedir}/dist"/>
86      <property name="topsrc.dir"           location="${basedir}/src"/>
87      <property name="jdk7src.dir"          location="${topsrc.dir}/jdk7"/>
88      <property name="jsr166xsrc.dir"       location="${topsrc.dir}/jsr166x"/>
89      <property name="jsr166ysrc.dir"       location="${topsrc.dir}/jsr166y"/>
90      <property name="jsr166esrc.dir"       location="${topsrc.dir}/jsr166e"/>
91      <property name="extra166ysrc.dir"     location="${topsrc.dir}/extra166y"/>
92      <property name="jdksrc.dir"           location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>
93    
94    <!-- Distribution locations -->    <!-- Distribution locations -->
95    <property name="dist.javadocs.dir"    location="${dist.dir}/docs"/>    <property name="dist.javadocs.dir"    location="${dist.dir}/docs"/>
96      <property name="dist.jdk7.docs.dir"          location="${dist.dir}/jsr166-jdk7docs"/>
97      <property name="dist.jsr166xjavadocs.dir"    location="${dist.dir}/jsr166xdocs"/>
98      <property name="dist.jsr166yjavadocs.dir"    location="${dist.dir}/jsr166ydocs"/>
99      <property name="dist.jsr166ejavadocs.dir"    location="${dist.dir}/jsr166edocs"/>
100      <property name="dist.extra166yjavadocs.dir"  location="${dist.dir}/extra166ydocs"/>
101    
102    <!-- Jar locations -->    <!-- Jar locations -->
103    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
104      <property name="jdk7product.jar"      location="${build.jdk7.lib.dir}/jsr166-jdk7.jar"/>
105      <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>
106      <property name="jsr166yproduct.jar"   location="${build.jsr166ylib.dir}/jsr166y.jar"/>
107      <property name="jsr166eproduct.jar"   location="${build.jsr166elib.dir}/jsr166e.jar"/>
108      <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
109    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>
   <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>  
110    
111      <!-- Bootclasspath argument -->
112      <property name="bootclasspath.args"   value="-Xbootclasspath/p:${product.jar}"/>
113    
114      <!-- Canonical location of jdk API docs, to use with javadoc link attribute -->
115      <property name="jdkapi5docs.url"      value="http://docs.oracle.com/javase/1.5.0/docs/api/"/>
116      <property name="jdkapi6docs.url"      value="http://docs.oracle.com/javase/6/docs/api/"/>
117      <property name="jdkapi7docs.url"      value="http://docs.oracle.com/javase/7/docs/api/"/>
118    
119      <property name="jdkapi8docs.url"      value="http://download.java.net/jdk8/docs/api/"/>
120      <!-- The below does not yet exist as of 2012-11 -->
121      <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->
122      <property name="jdkapidocs.url"       value="${jdkapi7docs.url}"/>
123    
124    <!-- Files excluded from emulation and dist-docs -->    <!-- Test classpath -->
125    <patternset id="emulation.excludes">    <path id="test.classpath">
126      <exclude name="java/util/Random.*"/>      <pathelement location="${build.testcases.dir}"/>
127      <exclude name="sun/misc/Unsafe.*"/>      <pathelement location="${junit.jar}"/>
128    </patternset>    </path>
129    
130      <!-- ALoops classpath -->
131      <path id="loops.classpath">
132        <pathelement location="${build.loops.dir}"/>
133      </path>
134    
135    
136    <!-- Main targets -->    <!-- Main targets -->
137    
138      <target name="dists"
139              depends="dist, jsr166xdist, jsr166ydist,jsr166edist,  extra166ydist"
140              description="Builds all public jars and docs"/>
141    
142    <target name="compile"    <target name="compile"
143            depends="init, configure-compiler, prepare-src"            depends="init, configure-compiler"
144            description="Compiles main sources to build folder">            description="Compiles main sources to build folder">
145    
     <property name="prepare.src.dir" value="${src.dir}"/>  
   
146      <mkdir dir="${build.classes.dir}"/>      <mkdir dir="${build.classes.dir}"/>
147    
148  <!--      <javac srcdir="${src.dir}"
     <echo>javac ${gjc.args}</echo>  
     <echo>bootclasspath=${compile.bootclasspath}</echo>  
 -->  
   
     <javac srcdir="${prepare.src.dir}"  
149            destdir="${build.classes.dir}"            destdir="${build.classes.dir}"
150              debug="${build.debug}"              debug="${build.debug}"
151         debuglevel="${build.debuglevel}"         debuglevel="${build.debuglevel}"
# Line 90  Line 153 
153             source="${build.sourcelevel}"             source="${build.sourcelevel}"
154               fork="true">               fork="true">
155    
156        <compilerarg    line="${gjc.args}"/>        <include name="**/*.java"/>
157        <bootclasspath refid="compile.bootclasspath"/>        <compilerarg value="-XDignore.symbol.file=true"/>
158    
159    <!--
160          <exclude name="java/lang/**"/>
161          <compilerarg line="${build.args}"/>
162          <compilerarg line="-Xlint -Xmaxwarns 1000"/>
163    -->
164    
165      </javac>      </javac>
166    
167    </target>    </target>
168    
169    
   <target name="jar"  
           depends="configure-emulation, init-jar, native-jar, emulation-jar"  
           description="Builds library jar from compiled sources"/>  
   
   
   <target name="test"  
           depends="init, configure-tests, report-tests"  
           description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />  
170    
171      <target name="jar"
172              depends="compile"
173              description="Builds library jar from compiled sources">
174    
175    <target name="checkstyle"      <mkdir dir="${build.lib.dir}"/>
           depends="filter-src"  
           description="Reports on style errors in Java source (verbose, mostly chaff)">  
   
     <taskdef resource="checkstyletask.properties"  
             classpath="${lib.dir}/checkstyle-all-2.4.jar"/>  
176    
177      <checkstyle>      <jar destfile="${product.jar}">
178        <formatter type="plain"/>  <!-- also available: type="xml" -->        <fileset dir="${build.classes.dir}"/>
179        <fileset dir="${build.filter.src.dir}" includes="**/*.java"/>      </jar>
     </checkstyle>  
180    
181    </target>    </target>
182    
183    
   <target name="doccheck"  
           depends="filter-src"  
           description="Reports on javadoc style errors (not working yet)">  
184    
185      <delete dir="${build.doccheck.dir}"/>    <target name="test"
186      <mkdir dir="${build.doccheck.dir}"/>            depends="init, configure-tests, report-tests"
187              description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
     <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck"  
          docletpath="${lib.dir}/doccheck.jar"  
             destdir="${build.doccheck.dir}">  
       <packageset dir="${build.filter.src.dir}"/>  
     </javadoc>  
188    
   </target>  
189    
190    
191    <target name="docs"    <target name="docs"
           depends="filter-src"  
192            description="Builds javadocs with custom tags to build folder">            description="Builds javadocs with custom tags to build folder">
193    
194      <delete dir="${build.javadocs.dir}"/>      <delete dir="${build.javadocs.dir}"/>
195      <mkdir dir="${build.javadocs.dir}"/>      <mkdir dir="${build.javadocs.dir}"/>
196    
197        <!-- the packagenames="none" hack below prevents scanning the -->
198        <!-- sourcepath for packages -->
199    
200      <javadoc destdir="${build.javadocs.dir}"      <javadoc destdir="${build.javadocs.dir}"
201                  link="http://java.sun.com/j2se/1.4.1/docs/api"               packagenames="none"
202                 link="${jdkapidocs.url}"
203              overview="${src.dir}/intro.html"              overview="${src.dir}/intro.html"
204                source="${build.docsourcelevel}">               sourcepath="${src.dir}:${jdksrc.dir}"
205                 additionalparam="-XDignore.symbol.file=true" >
206        <tag name="revised" description="Last revised:"/>        <fileset dir="${src.dir}" defaultexcludes="yes">
207        <tag name="spec"    description="Specified by:"/>          <include name="**/*.java"/>
208        <tag name="editor"  description="Last edited by:"/>        </fileset>
       <tag name="fixme"   description="FIX ME:"/>  
   
       <packageset dir="${build.filter.src.dir}"/>  
   
209      </javadoc>      </javadoc>
210    
211    </target>    </target>
212    
213    
   <target name="strip"  
           depends="init, configure-compiler"  
           description="Strip generics from java source (not working yet)">  
214    
215      <mkdir dir="${build.stripped.dir}"/>    <target name="dist"
216              depends="init, dist-clean, dist-jar, dist-docs"
217      <!--            description="Puts all distributable products in single hierarchy"/>
      # javac -s doesn't reliably generate compilable code. It generates  
      # bridge methods (marked as "synthetic") that can have identical  
      # signatures to existing methods except for the return value.  
      -->  
     <javac srcdir="${src.dir}"  
           destdir="${build.stripped.dir}"  
             debug="${build.debug}"  
        debuglevel="${build.debuglevel}"  
       deprecation="${build.deprecation}"  
            source="${build.sourcelevel}"  
              fork="true">  
218    
       <compilerarg    line="${gjc.args} -s"/>  
       <bootclasspath refid="compile.bootclasspath"/>  
219    
220      </javac>    <target name="release"
221              depends="dist"
222              description="Puts entire CVS tree, plus distribution productions, in a jar">
223    
224        <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
225    
226        <jar basedir="${basedir}" destfile="${release.jar}">
227          <!-- <exclude name="build/**"/> -->
228          <exclude name="${release.jar}"/>
229          <exclude name="user.properties"/>
230          <exclude name="etc/notes/**"/>
231          <exclude name="src/emulation/**"/>
232          <exclude name="**/SyntaxTest.java"/>
233          <exclude name="**/SuperfluousAbstract.java"/>
234        </jar>
235    
236    </target>    </target>
237    
238    
   <target name="dist"  
           depends="init, dist-clean, dist-jar, dist-docs"  
           description="Puts all distributable products in single hierarchy"/>  
   
239    
240    <target name="clean"    <target name="clean"
241            description="Removes all build products">            description="Removes all build products">
# Line 205  Line 247 
247    </target>    </target>
248    
249    
250    
251    <target name="dist-clean"    <target name="dist-clean"
252            description="Removes all build and distribution products">            description="Removes all build and distribution products">
253    
# Line 213  Line 256 
256    </target>    </target>
257    
258    
259    
260    <target name="dist-docs"    <target name="dist-docs"
           depends="filter-src"  
261            description="Builds javadocs without custom tags to dist folder">            description="Builds javadocs without custom tags to dist folder">
262    
263      <delete dir="${dist.javadocs.dir}"/>      <delete dir="${dist.javadocs.dir}"/>
264      <mkdir dir="${dist.javadocs.dir}"/>      <mkdir dir="${dist.javadocs.dir}"/>
265    
266        <!-- the packagenames="none" hack below prevents scanning the -->
267        <!-- sourcepath for packages -->
268    
269      <javadoc destdir="${dist.javadocs.dir}"      <javadoc destdir="${dist.javadocs.dir}"
270                  link="http://java.sun.com/j2se/1.4.1/docs/api"               packagenames="none"
271                 link="${jdkapidocs.url}"
272              overview="${src.dir}/intro.html"              overview="${src.dir}/intro.html"
273                source="${build.docsourcelevel}">               sourcepath="${src.dir}:${jdksrc.dir}"
274                 additionalparam="-XDignore.symbol.file=true" >
275        <packageset dir="${build.filter.src.dir}"/>        <fileset dir="${src.dir}" defaultexcludes="yes">
276            <include name="**/*.java"/>
277          </fileset>
278      </javadoc>      </javadoc>
279    
280    </target>    </target>
# Line 241  Line 289 
289      <!-- Version is kept in a separate file -->      <!-- Version is kept in a separate file -->
290      <loadfile property="version" srcFile="version.properties"/>      <loadfile property="version" srcFile="version.properties"/>
291      <echo>Building JSR-166 version ${version}</echo>      <echo>Building JSR-166 version ${version}</echo>
292        <echo>java.home is ${java.home}</echo>
293    
294    </target>    </target>
295    
296    
297    <target name="init-jar">    <target name="dist-jar"
298              depends="clean, jar">
299    
300      <mkdir dir="${build.lib.dir}"/>      <copy file="${product.jar}" todir="${dist.dir}"/>
301    
302    </target>    </target>
303    
304    
305    <target name="native-jar"    <target name="compile-tests"
306            depends="compile"            depends="jar">
           unless="build.emulation.true">  
307    
308      <jar destfile="${product.jar}">      <mkdir dir="${build.testcases.dir}"/>
       <fileset dir="${build.classes.dir}"/>  
     </jar>  
309    
310    </target>      <javac srcdir="${tck.src.dir}"
311              destdir="${build.testcases.dir}"
312                debug="${build.debug}"
313           debuglevel="${build.debuglevel}"
314          deprecation="${build.deprecation}"
315               source="${build.sourcelevel}"
316                 fork="true">
317    
318          <compilerarg value="${bootclasspath.args}"/>
319          <compilerarg line="${build.args}"/>
320          <compilerarg value="-XDignore.symbol.file=true"/>
321    
322    <target name="compile-emulation"        <classpath refid="test.classpath"/>
323            depends="init, configure-compiler"  
324            if="build.emulation.true">      </javac>
325    
326        <javac srcdir="${test.src.dir}"
327              destdir="${build.testcases.dir}"
328                debug="${build.debug}"
329           debuglevel="${build.debuglevel}"
330          deprecation="${build.deprecation}"
331               source="${build.sourcelevel}"
332                 fork="true">
333    
334      <mkdir dir="${build.emulation.dir}"/>        <include name="jsr166/test/**"/>
335    
336      <javac srcdir="${emulation.src.dir}"        <compilerarg value="${bootclasspath.args}"/>
337            destdir="${build.emulation.dir}"        <compilerarg line="${build.args}"/>
338          <compilerarg value="-XDignore.symbol.file=true"/>
339    
340          <classpath refid="test.classpath"/>
341    
342        </javac>
343    
344    <!--
345        <javac srcdir="${jtreg.src.dir}"
346              destdir="${build.testcases.dir}"
347              debug="${build.debug}"              debug="${build.debug}"
348         debuglevel="${build.debuglevel}"         debuglevel="${build.debuglevel}"
349        deprecation="${build.deprecation}"        deprecation="${build.deprecation}"
350             source="${build.sourcelevel}"             source="${build.sourcelevel}"
351               fork="true">               fork="true">
352    
353        <compilerarg    line="${gjc.args}"/>        <compilerarg value="${bootclasspath.args}"/>
354        <bootclasspath refid="compile.bootclasspath"/>        <compilerarg line="${build.args}"/>
355          <compilerarg value="-XDignore.symbol.file=true"/>
356    
357          <classpath refid="test.classpath"/>
358    
359      </javac>      </javac>
360    -->
361    
362    </target>    </target>
363    
364    
365    <target name="emulation-jar"    <target name="run-tests"
366            depends="compile-emulation"            depends="compile-tests">
           if="build.emulation.true">  
367    
368        <!-- May be overridden by user.properties -->
369        <property name="testcase" value="*"/>
370    
371      <jar destfile="${product.jar}" duplicate="add">      <mkdir dir="${build.reports.dir}"/>
       <fileset dir="${build.classes.dir}">  
         <patternset refid="emulation.excludes"/>  
       </fileset>  
       <fileset dir="${build.emulation.dir}"/>  
     </jar>  
372    
373    </target>      <junit printsummary="true"
374                 showoutput="true"
375              errorProperty="junit.failed"
376            failureProperty="junit.failed"
377                        dir="${build.reports.dir}"
378                       fork="true">
379    
380          <jvmarg value="${bootclasspath.args}"/>
381          <jvmarg value="-server"/>
382          <jvmarg value="-showversion"/>
383    
384    <target name="dist-jar"        <classpath refid="test.classpath"/>
           depends="clean, jar">  
385    
386      <copy file="${product.jar}" todir="${dist.dir}"/>        <formatter type="xml"/>
387    
388          <batchtest todir="${build.reports.dir}" unless="no.test.tck">
389            <fileset dir="${tck.src.dir}">
390              <include name="**/${testcase}Test.java"/>
391            </fileset>
392          </batchtest>
393    
394          <batchtest todir="${build.reports.dir}" if="do.test.old">
395            <fileset dir="${test.src.dir}">
396              <include name="jsr166/test/**/${testcase}Test.java"/>
397            </fileset>
398          </batchtest>
399    
400    <!--
401          <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
402            <fileset dir="${jtreg.src.dir}">
403              <include name="**/${testcase}Test.java"/>
404            </fileset>
405          </batchtest>
406    -->
407    
408        </junit>
409    
410    </target>    </target>
411    
412    
413    <target name="compile-ant-filter"    <target name="report-tests"
414            depends="init">            depends="run-tests">
415    
416      <mkdir dir="${build.ant.dir}"/>      <!-- Sets junit.report.format to frames if redirection is present,
417             otherwise sets it to noframes. -->
418        <available property="junit.report.format"
419                      value="frames"
420                  classname="org.apache.xalan.lib.Redirect"
421        />
422        <property name="junit.report.format" value="noframes"/>
423    
424      <javac srcdir="${ant.src.dir}"      <junitreport todir="${build.reports.dir}">
425            destdir="${build.ant.dir}"        <fileset dir="${build.reports.dir}">
426             source="1.4"          <include name="TEST-*.xml"/>
427          </fileset>
428          <report format="${junit.report.format}" todir="${build.reports.dir}"
429      />      />
430        </junitreport>
431    
432        <fail message="Test Cases Failed" if="junit.failed"/>
433    
434    </target>    </target>
435    
436    
437    <target name="filter-src"    <target name="configure-compiler">
           depends="compile-ant-filter">  
438    
439      <mkdir dir="${build.filter.src.dir}"/>      <property name="unchecked.option" value="-Xlint:unchecked"/>
440    
441      <copy todir="${build.filter.src.dir}">      <condition property="warnunchecked.arg" value="${unchecked.option}">
442        <fileset dir="${src.dir}">        <istrue value="${build.warnunchecked}"/>
443          <include name="**/*.html"/>      </condition>
       </fileset>  
     </copy>  
444    
445      <!-- Not needed now, used for doccheck filtering:      <property name="warnunchecked.arg" value=""/>
     <property name="generic.declarations"  
              value="public interface E {} public interface T {} public interface K {} public interface V {}"  
     />  
     -->  
446    
     <copy todir="${build.filter.src.dir}">  
       <fileset dir="${src.dir}">  
         <exclude name="**/*.html"/>  
         <patternset refid="emulation.excludes"/>  
       </fileset>  
       <filterchain>  
447    
448          <!--      <!-- Common options in javac invocations -->
449           # This filter gets rid of angle-bracketed type parameters      <property name="build.args" value="${warnunchecked.arg}"/>
          # so that javadoc can run on the result. The following  
          # heuristic seems to work:  
          #  
          # For all lines not starting with space(s)-asterisk-space(s),  
          #   replace <something> with a space, where there may be more  
          #   than one right angle bracket at the end, and "something"  
          #   must not contain parens or pipes. (This may need some  
          #   tweaking.)  
          -->  
450    
451          <filterreader classname="jsr166.ant.filters.ReplaceFilter"    </target>
                       classpath="${build.ant.dir}">  
           <param name="notmatching" value="^\s+\*\s.*$"/>  
           <param name="pattern"     value="&lt;[^|>()]+?>+"/>  
           <param name="replacement" value=" "/>  
         </filterreader>  
452    
453    
454          <!--    <target name="configure-tests"
455           # This filter uncomments lines beginning with "//@" so that         depends="configure-compiler">
          # javadoc can see imports that are needed to resolve links  
          # but that shouldn't be in the compiled code.  
          -->  
456    
457          <filterreader classname="jsr166.ant.filters.ReplaceFilter"      <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
458                        classpath="${build.ant.dir}">      <available property="junit.available"
459            <param name="matching"    value="^//@.*$"/>                 classname="junit.framework.Protectable"/>
           <param name="pattern"     value="^//@"/>  
           <param name="replacement" value=""/>  
         </filterreader>  
460    
461        <!-- Xalan -->
462        <available property="xalan.available"
463                   classname="org.apache.xalan.Version"/>
464    
         <!--  
          # The next two filters try to make the source look like  
          # something that doccheck can process. The first removes  
          # -source 1.4 assertions and the second adds in a bunch  
          # of single letter public nested marker interfaces so that  
          # the generic type parameters are recognized.  
          #  
          # Currently commented out because doccheck doesn't work. :-(  
          -->  
465    
466        <!-- Ant 1.6beta and later don't need or want this check -->
467          <!--          <!--
468          <filterreader classname="jsr166.ant.filters.ReplaceFilter"      <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
469                        classpath="${build.ant.dir}">            unless="junit.available"/>
           <param name="matching"    value="^\s*assert[\s ].*$"/>  
           <param name="pattern"     value="assert"/>  
           <param name="replacement" value="//assert"/>  
         </filterreader>  
   
         <filterreader classname="jsr166.ant.filters.ReplaceFilter"  
                       classpath="${build.ant.dir}">  
           <param name="matching"    value="^(.*(class|interface|implements) .*|)\{.*$"/>  
           <param name="pattern"     value="$"/>  
           <param name="replacement" value=" ${generic.declarations}"/>  
         </filterreader>  
         -->  
470    
471        </filterchain>      <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
472      </copy>            unless="xalan.available"/>
473        -->
474    
475    </target>    </target>
476    
477    
478    <target name="compile-tests"    <!-- Various demos and test programs -->
           depends="jar">  
479    
     <mkdir dir="${build.testcases.dir}"/>  
480    
481  <!--    <target name="loops" depends="init, configure-compiler"
482      <echo>javac ${gjc.args}</echo>            description="Benchmark from Doug Lea's AQS paper">
     <echo>bootclasspath=${test.compile.bootclasspath}</echo>  
     <echo>classpath="${test.classpath}"</echo>  
 -->  
483    
484      <javac srcdir="${test.src.dir}"      <mkdir dir="${build.loops.dir}"/>
485            destdir="${build.testcases.dir}"  
486        <javac srcdir="${loops.src.dir}"
487              destdir="${build.loops.dir}"
488              debug="${build.debug}"              debug="${build.debug}"
489         debuglevel="${build.debuglevel}"         debuglevel="${build.debuglevel}"
490        deprecation="${build.deprecation}"        deprecation="${build.deprecation}"
491             source="${build.sourcelevel}"             source="${build.sourcelevel}"
492               fork="true">               fork="true">
493    
494        <compilerarg    line="${gjc.args}"/>        <compilerarg line="${build.args}"/>
495        <bootclasspath refid="test.compile.bootclasspath"/>        <classpath refid="loops.classpath"/>
496        <classpath     refid="test.classpath"/>        <compilerarg value="-XDignore.symbol.file=true"/>
497    
498      </javac>      </javac>
499    
500        <java classname="ALoops" fork="true">
501          <classpath refid="loops.classpath"/>
502        </java>
503    
504    </target>    </target>
505    
506    
507    <target name="run-tests"    <!-- jdk7 -->
           depends="compile-tests">  
508    
     <!-- May be overridden by user.properties -->  
     <property name="testcase" value="*"/>  
509    
510      <mkdir dir="${build.reports.dir}"/>    <target name="jdk7compile"
511              depends="configure-compiler"
512              description="Compiles src/jdk7 sources">
513    
514      <junit printsummary="true"      <mkdir dir="${build.jdk7.classes.dir}"/>
515               showoutput="true"  
516            errorProperty="junit.failed"      <javac srcdir="${jdk7src.dir}"
517          failureProperty="junit.failed"             destdir="${build.jdk7.classes.dir}"
518                      dir="${build.reports.dir}"             debug="${build.debug}"
519               debuglevel="${build.debuglevel}"
520               deprecation="${build.deprecation}"
521               source="1.6"
522               classpath=""
523               bootclasspath="${bootclasspath6}"
524               includeAntRuntime="false"
525               includeJavaRuntime="false"
526               executable="${javac6}"
527                     fork="true">                     fork="true">
528    
529        <jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/>        <include name="**/*.java"/>
530          <compilerarg line="${build.args}"/>
531          <compilerarg value="-XDignore.symbol.file=true"/>
532          <compilerarg value="-Xlint:all"/>
533    
534        <formatter type="xml"/>      </javac>
535    
536        <batchtest todir="${build.reports.dir}">    </target>
537          <fileset dir="${test.src.dir}">  
538            <include name="**/${testcase}Test.java"/>  
539    
540      <target name="jdk7jar"
541              depends="jdk7compile"
542              description="Builds library jar from compiled sources">
543    
544        <mkdir dir="${build.jdk7.lib.dir}"/>
545    
546        <jar destfile="${jdk7product.jar}" index="true">
547          <fileset dir="${build.jdk7.classes.dir}"/>
548        </jar>
549    
550      </target>
551    
552    
553    
554      <target name="jdk7docs"
555              description="Builds javadocs with custom tags to build folder">
556    
557        <delete dir="${build.jdk7.docs.dir}"/>
558        <mkdir dir="${build.jdk7.docs.dir}"/>
559    
560        <javadoc destdir="${build.jdk7.docs.dir}"
561                 packagenames="none"
562                 link="${jdkapi7docs.url}"
563                 overview="${jdk7src.dir}/intro.html"
564                 sourcepath="${jdk7src.dir}"
565                 bootclasspath="${bootclasspath6}"
566                 classpath=""
567                 source="1.6"
568                 executable="${javadoc7}"
569                 additionalparam="-XDignore.symbol.file=true" >
570          <fileset dir="${jdk7src.dir}" defaultexcludes="yes">
571            <include name="**/*.java"/>
572          </fileset>          </fileset>
573        </batchtest>      </javadoc>
574    
575      </target>
576    
577    
578      <target name="jdk7dist"
579              depends="jdk7dist-clean, jdk7dist-jar, jdk7dist-docs"
580              description="Puts all distributable products in single hierarchy"/>
581    
582      </junit>  
583    
584      <target name="jdk7clean"
585              description="Removes all build products">
586    
587        <delete dir="${build.jdk7.dir}"/>
588    
589    </target>    </target>
590    
591    
   <target name="report-tests"  
           depends="run-tests">  
592    
593      <!-- Sets junit.report.format to frames if Xalan is present,    <target name="jdk7dist-clean"
594           otherwise sets it to noframes. -->            description="Removes all build and distribution products">
     <available property="junit.report.format"  
                   value="frames"  
               classname="org.apache.xalan.lib.Redirect"  
     />  
     <property name="junit.report.format" value="noframes"/>  
595    
596      <junitreport todir="${build.reports.dir}">    </target>
597        <fileset dir="${build.reports.dir}">  
598          <include name="TEST-*.xml"/>    <target name="jdk7dist-docs"
599              description="Builds javadocs without custom tags to dist folder">
600    
601        <delete dir="${dist.jdk7.docs.dir}"/>
602        <mkdir dir="${dist.jdk7.docs.dir}"/>
603    
604        <javadoc destdir="${dist.jdk7.docs.dir}"
605                 packagenames="none"
606                 link="${jdkapi7docs.url}"
607                 overview="${jdk7src.dir}/intro.html"
608                 sourcepath="${jdk7src.dir}"
609                 classpath=""
610                 executable="${javadoc7}"
611                 bootclasspath="${bootclasspath6}"
612                 source="1.6">
613          <arg value="-XDignore.symbol.file=true"/>
614          <fileset dir="${jdk7src.dir}" defaultexcludes="yes">
615            <include name="**/*.java"/>
616        </fileset>        </fileset>
617        <report styledir="${stylesheet.dir}"      </javadoc>
                 format="${junit.report.format}"  
                  todir="${build.reports.dir}"  
       />  
     </junitreport>  
618    
619      <fail message="Test Cases Failed" if="junit.failed"/>    </target>
620    
621      <target name="jdk7dist-jar"
622              depends="jdk7clean, jdk7jar">
623    
624        <copy file="${jdk7product.jar}" todir="${dist.dir}"/>
625    
626    </target>    </target>
627    
628      <!-- jsr166x -->
629    
   <target name="configure-compiler">  
630    
631      <property name="gjc.version"    <target name="jsr166xcompile"
632               value="2.0"/>            depends="init, configure-compiler"
633              description="Compiles jsr166x sources">
634    
635      <condition property="novariance.arg" value="-novariance">      <mkdir dir="${build.jsr166x.dir}"/>
       <and>  
         <equals arg1="${gjc.version}" arg2="2.0"/>  
         <or>  
           <not><isset property="gjc.novariance"/></not>  
           <istrue value="${gjc.novariance}"/>  
         </or>  
       </and>  
     </condition>  
636    
637      <property name="novariance.arg"      <javac srcdir="${jsr166xsrc.dir}"
638               value=""/>            destdir="${build.jsr166x.dir}"
639                debug="${build.debug}"
640           debuglevel="${build.debuglevel}"
641          deprecation="${build.deprecation}"
642               source="${build.sourcelevel}"
643                 fork="true">
644    
645      <property name="gjc.dir"        <include name="**/*.java"/>
646               value="${lib.dir}/gjc"/>        <compilerarg line="${build.args}"/>
647          <compilerarg value="-XDignore.symbol.file=true"/>
648    
649      <property name="javac.jar"      </javac>
           location="${gjc.dir}/${gjc.version}/javac.jar"/>  
650    
651      <property name="collect.jar"    </target>
           location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/>  
652    
653    
     <condition property="warnunchecked.arg" value="-warnunchecked">  
       <istrue value="${gjc.warnunchecked}"/>  
     </condition>  
654    
655      <property name="warnunchecked.arg" value=""/>    <target name="jsr166xjar"
656              depends="jsr166xcompile"
657              description="Builds library jar from compiled sources">
658    
659      <condition property="prepare.src.dir" value="${build.dir}/prepare-src">      <mkdir dir="${build.jsr166xlib.dir}"/>
       <istrue value="${build.nothreads}"/>  
     </condition>  
660    
661        <jar destfile="${jsr166xproduct.jar}">
662          <fileset dir="${build.jsr166x.dir}"/>
663        </jar>
664    
665      <!--    </target>
      ! Bootclasspath munging for source compilation.  
      -->  
666    
     <path id="pre.bootclasspath">  
       <!-- <pathelement location="${src.dir}"/> -->  
       <pathelement location="${javac.jar}"/>  
     </path>  
667    
     <path id="compile.bootclasspath">  
       <!-- <pathelement location="${src.dir}"/> -->  
       <pathelement location="${collect.jar}"/>  
       <pathelement location="${rt.jar}"/>  
     </path>  
668    
669      <!-- Flatten paths into platform-appropriate strings -->    <target name="jsr166xdocs"
670      <property name="pre.bootclasspath"     refid="pre.bootclasspath"/>            description="Builds javadocs with custom tags to build folder">
     <property name="compile.bootclasspath" refid="compile.bootclasspath"/>  
671    
672        <delete dir="${build.jsr166xjavadocs.dir}"/>
673        <mkdir dir="${build.jsr166xjavadocs.dir}"/>
674    
675      <!-- Common options in javac invocations -->      <javadoc destdir="${build.jsr166xjavadocs.dir}"
676      <property name="gjc.args"               packagenames="jsr166x"
677               value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}"               link="${jdkapidocs.url}"
678      />               source="${build.sourcelevel}"
679                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
680                 additionalparam="-XDignore.symbol.file=true" />
681    
682    </target>    </target>
683    
684    
685    <target name="prepare-src"    <target name="jsr166xdist"
686            depends="configure-compiler"            depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
687            if="prepare.src.dir">            description="Puts all distributable products in single hierarchy"/>
688    
689    
690      <mkdir dir="${prepare.src.dir}"/>  
691      <copy todir="${prepare.src.dir}">    <target name="jsr166xclean"
692        <fileset dir="${src.dir}">            description="Removes all build products">
693          <exclude name="java/lang/**"/>  
694        </fileset>      <delete dir="${build.jsr166x.dir}"/>
695      </copy>      <delete dir="${build.jsr166xlib.dir}"/>
696    
697    </target>    </target>
698    
699    
   <target name="configure-emulation">  
700    
701      <condition property="build.emulation.true">    <target name="jsr166xdist-clean"
702        <or>            description="Removes all build and distribution products">
         <and>  
           <os family="windows"/>  
           <not>  
             <isset property="build.emulation"/>  
           </not>  
         </and>  
         <istrue value="${build.emulation}"/>  
       </or>  
     </condition>  
703    
704    </target>    </target>
705    
706    
   <target name="configure-tests"  
        depends="configure-compiler">  
707    
708      <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->    <target name="jsr166xdist-docs"
709      <available property="junit.available"            description="Builds javadocs without custom tags to dist folder">
                classname="junit.framework.Protectable"/>  
710    
711      <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"      <delete dir="${dist.jsr166xjavadocs.dir}"/>
712            unless="junit.available"/>      <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
713    
714        <javadoc destdir="${dist.jsr166xjavadocs.dir}"
715                 packagenames="jsr166x"
716                 link="${jdkapidocs.url}"
717                 source="${build.sourcelevel}"
718                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
719                 additionalparam="-XDignore.symbol.file=true" />
720    
721      <!--    </target>
      ! Bootclasspath munging for testing, so JUnit can test our local  
      ! modifications to java.*.  
      -->  
722    
723      <path id="test.classpath">    <target name="jsr166xdist-jar"
724        <pathelement location="${product.jar}"/>            depends="jsr166xclean, jsr166xjar">
725        <pathelement location="${build.testcases.dir}"/>  
726        <pathelement location="${junit.jar}"/>      <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
727      </path>  
728      </target>
729    
730      <!-- jsr166y -->
731    
732    
733      <target name="jsr166ycompile"
734              depends="init, configure-compiler"
735              description="Compiles jsr166y sources">
736    
737        <mkdir dir="${build.jsr166y.dir}"/>
738    
739        <javac srcdir="${jsr166ysrc.dir}"
740              destdir="${build.jsr166y.dir}"
741                debug="${build.debug}"
742           debuglevel="${build.debuglevel}"
743          deprecation="${build.deprecation}"
744               source="${build.sourcelevel}"
745                 fork="true">
746    
747          <include name="**/*.java"/>
748          <compilerarg line="${build.args}"/>
749          <compilerarg value="-XDignore.symbol.file=true"/>
750          <compilerarg value="${bootclasspath.args}"/>
751    
752    <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
753    
754        </javac>
755    
756      </target>
757    
758    
759    
760      <target name="jsr166yjar"
761              depends="jsr166ycompile"
762              description="Builds library jar from compiled sources">
763    
764        <mkdir dir="${build.jsr166ylib.dir}"/>
765    
766        <jar destfile="${jsr166yproduct.jar}" index="true">
767          <fileset dir="${build.jsr166y.dir}"/>
768        </jar>
769    
770      </target>
771    
772    
773    
774      <target name="jsr166ydocs"
775              description="Builds javadocs with custom tags to build folder">
776    
777        <delete dir="${build.jsr166yjavadocs.dir}"/>
778        <mkdir dir="${build.jsr166yjavadocs.dir}"/>
779    
780        <javadoc destdir="${build.jsr166yjavadocs.dir}"
781                 packagenames="jsr166y"
782                 link="${jdkapidocs.url}"
783                 source="${build.sourcelevel}"
784                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
785                 additionalparam="-XDignore.symbol.file=true" />
786    
787      </target>
788    
789    
790      <target name="jsr166ydist"
791              depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs"
792              description="Puts all distributable products in single hierarchy"/>
793    
794    
795    
796      <target name="jsr166yclean"
797              description="Removes all build products">
798    
799        <delete dir="${build.jsr166y.dir}"/>
800        <delete dir="${build.jsr166ylib.dir}"/>
801    
802      </target>
803    
     <path id="test.compile.bootclasspath">  
       <pathelement location="${javac.jar}"/>  
       <pathelement location="${collect.jar}"/>  
       <pathelement location="${rt.jar}"/>  
     </path>  
804    
     <path id="test.run.bootclasspath">  
       <pathelement location="${javac.jar}"/>  
       <path refid="test.classpath"/>  
     </path>  
805    
806      <!-- Flatten test classpaths into platform-appropriate strings -->    <target name="jsr166ydist-clean"
807      <property name="test.classpath"             refid="test.classpath"/>            description="Removes all build and distribution products">
808      <property name="test.compile.bootclasspath" refid="test.compile.bootclasspath"/>  
809      <property name="test.run.bootclasspath"     refid="test.run.bootclasspath"/>    </target>
810    
811      <target name="jsr166ydist-docs"
812              description="Builds javadocs without custom tags to dist folder">
813    
814        <delete dir="${dist.jsr166yjavadocs.dir}"/>
815        <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
816    
817        <javadoc destdir="${dist.jsr166yjavadocs.dir}"
818                 packagenames="jsr166y"
819                 link="${jdkapidocs.url}"
820                 source="${build.sourcelevel}"
821                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
822                 additionalparam="-XDignore.symbol.file=true" />
823    
824      </target>
825    
826      <target name="jsr166ydist-jar"
827              depends="jsr166yclean, jsr166yjar">
828    
829        <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
830    
831      </target>
832    
833    
834      <!-- extra166y -->
835    
836    
837      <target name="extra166ycompile"
838              depends="init, configure-compiler, jsr166ycompile"
839              description="Compiles extra166y sources">
840    
841        <mkdir dir="${build.extra166y.dir}"/>
842    
843        <javac srcdir="${extra166ysrc.dir}"
844              destdir="${build.extra166y.dir}"
845                debug="${build.debug}"
846                classpath="${jsr166yproduct.jar}"
847           debuglevel="${build.debuglevel}"
848          deprecation="${build.deprecation}"
849               source="${build.sourcelevel}"
850                 fork="true">
851    
852          <include name="**/*.java"/>
853          <compilerarg line="${build.args}"/>
854          <compilerarg value="-XDignore.symbol.file=true"/>
855          <compilerarg value="${bootclasspath.args}"/>
856    
857    <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
858    
859        </javac>
860    
861      </target>
862    
863    
864    
865      <target name="extra166yjar"
866              depends="extra166ycompile"
867              description="Builds library jar from compiled sources">
868    
869        <mkdir dir="${build.extra166ylib.dir}"/>
870    
871        <jar destfile="${extra166yproduct.jar}" index="true">
872          <fileset dir="${build.extra166y.dir}"/>
873        </jar>
874    
875      </target>
876    
877    
878    
879      <target name="extra166ydocs"
880              description="Builds javadocs with custom tags to build folder">
881    
882        <delete dir="${build.extra166yjavadocs.dir}"/>
883        <mkdir dir="${build.extra166yjavadocs.dir}"/>
884    
885        <javadoc destdir="${build.extra166yjavadocs.dir}"
886                 packagenames="extra166y"
887                 link="${jdkapidocs.url}"
888                 source="${build.sourcelevel}"
889                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
890                 additionalparam="-XDignore.symbol.file=true" />
891    
892    </target>    </target>
893    
894    
895      <target name="extra166ydist"
896              depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
897              description="Puts all distributable products in single hierarchy"/>
898    
899    
   <!-- Anthill targets -->  
900    
901    <target name="anthill-build"    <target name="extra166yclean"
902            depends="jar, test, docs, dist-docs"/>            description="Removes all build products">
903    
904    <target name="anthill-publish">      <delete dir="${build.extra166y.dir}"/>
905        <delete dir="${build.extra166ylib.dir}"/>
906    
907      <copy todir="${deployDir}/docs/private">    </target>
       <fileset dir="${build.javadocs.dir}"/>  
     </copy>  
908    
     <copy todir="${deployDir}/docs/public">  
       <fileset dir="${dist.javadocs.dir}"/>  
     </copy>  
909    
     <copy tofile="${deployDir}/index.html"  
           file="${basedir}/etc/anthill-index.html"/>  
910    
911      <copy todir="${deployDir}/notes">    <target name="extra166ydist-clean"
912        <fileset dir="${basedir}/etc/notes"/>            description="Removes all build and distribution products">
     </copy>  
913    
914    </target>    </target>
915    
916      <target name="extra166ydist-docs"
917              description="Builds javadocs without custom tags to dist folder">
918    
919        <delete dir="${dist.extra166yjavadocs.dir}"/>
920        <mkdir dir="${dist.extra166yjavadocs.dir}"/>
921    
922        <javadoc destdir="${dist.extra166yjavadocs.dir}"
923                 packagenames="extra166y"
924                 link="${jdkapidocs.url}"
925                 source="${build.sourcelevel}"
926                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
927                 additionalparam="-XDignore.symbol.file=true" />
928    
929      </target>
930    
931      <target name="extra166ydist-jar"
932              depends="extra166yclean, extra166yjar">
933    
934        <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
935    
936      </target>
937    
938      <!-- jsr166e -->
939    
940      <target name="jsr166ecompile"
941              depends="configure-compiler"
942              description="Compiles jsr166e sources">
943    
944        <mkdir dir="${build.jsr166e.dir}"/>
945    
946        <javac srcdir="${topsrc.dir}"
947               destdir="${build.jsr166e.dir}"
948               debug="${build.debug}"
949               debuglevel="${build.debuglevel}"
950               deprecation="${build.deprecation}"
951               source="1.7"
952               classpath=""
953               includeAntRuntime="false"
954               includeJavaRuntime="false"
955               executable="${javac7}"
956               fork="true">
957    
958          <include name="jsr166e/**/*.java"/>
959          <compilerarg line="${build.args}"/>
960          <compilerarg value="-XDignore.symbol.file=true"/>
961          <compilerarg value="-Xlint:all"/>
962    
963        </javac>
964    
965      </target>
966    
967    
968    
969      <target name="jsr166ejar"
970              depends="jsr166ecompile"
971              description="Builds library jar from compiled sources">
972    
973        <mkdir dir="${build.jsr166elib.dir}"/>
974    
975        <jar destfile="${jsr166eproduct.jar}" index="true">
976          <fileset dir="${build.jsr166e.dir}"/>
977        </jar>
978    
979      </target>
980    
981    
982    
983      <target name="jsr166edocs"
984              description="Builds javadocs with custom tags to build folder">
985    
986        <delete dir="${build.jsr166ejavadocs.dir}"/>
987        <mkdir dir="${build.jsr166ejavadocs.dir}"/>
988    
989        <javadoc destdir="${build.jsr166ejavadocs.dir}"
990                 packagenames="jsr166e,jsr166e.extra"
991                 link="${jdkapi7docs.url}"
992                 source="1.7"
993                 sourcepath="${topsrc.dir}:${jdk7src.dir}:${jdksrc.dir}"
994                 executable="${javadoc7}"
995                 additionalparam="-XDignore.symbol.file=true" >
996          <fileset dir="${topsrc.dir}" defaultexcludes="yes">
997            <include name="jsr166e/**/*.java"/>
998          </fileset>
999        </javadoc>
1000    
1001      </target>
1002    
1003    
1004      <target name="jsr166edist"
1005              depends="jsr166edist-clean, jsr166edist-jar, jsr166edist-docs"
1006              description="Puts all distributable products in single hierarchy"/>
1007    
1008    
1009    
1010      <target name="jsr166eclean"
1011              description="Removes all build products">
1012    
1013        <delete dir="${build.jsr166e.dir}"/>
1014        <delete dir="${build.jsr166elib.dir}"/>
1015    
1016      </target>
1017    
1018    
1019    
1020      <target name="jsr166edist-clean"
1021              description="Removes all build and distribution products">
1022    
1023      </target>
1024    
1025      <target name="jsr166edist-docs"
1026              description="Builds javadocs without custom tags to dist folder">
1027    
1028        <delete dir="${dist.jsr166ejavadocs.dir}"/>
1029        <mkdir dir="${dist.jsr166ejavadocs.dir}"/>
1030    
1031        <javadoc destdir="${dist.jsr166ejavadocs.dir}"
1032                 packagenames="jsr166e,jsr166e.extra"
1033                 link="${jdkapidocs.url}"
1034                 source="1.7"
1035                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
1036                 additionalparam="-XDignore.symbol.file=true" />
1037    
1038      </target>
1039    
1040      <target name="jsr166edist-jar"
1041              depends="jsr166eclean, jsr166ejar">
1042    
1043        <copy file="${jsr166eproduct.jar}" todir="${dist.dir}"/>
1044    
1045      </target>
1046    
1047  </project>  </project>

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.96

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8