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

Diff of /jsr166/build.xml

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

revision 1.262 by jsr166, Tue Jan 23 04:59:10 2018 UTC revision 1.273 by jsr166, Fri Jun 22 17:45:02 2018 UTC
# Line 1  Line 1 
1  <project name="jsr166" default="usage"  <project name="jsr166" default="usage"
2    xmlns:if="ant:if" xmlns:unless="ant:unless"    xmlns:if="ant:if"
3      xmlns:unless="ant:unless"
4    xmlns:ivy="antlib:org.apache.ivy.ant">    xmlns:ivy="antlib:org.apache.ivy.ant">
5    
6    <description>    <description>
# Line 191  Line 192 
192    <property name="java7.docroot.url"  value="https://docs.oracle.com/javase/7/docs"/>    <property name="java7.docroot.url"  value="https://docs.oracle.com/javase/7/docs"/>
193    <property name="java8.docroot.url"  value="https://docs.oracle.com/javase/8/docs"/>    <property name="java8.docroot.url"  value="https://docs.oracle.com/javase/8/docs"/>
194    <property name="java9.docroot.url"  value="https://docs.oracle.com/javase/9/docs"/>    <property name="java9.docroot.url"  value="https://docs.oracle.com/javase/9/docs"/>
195    <!-- The location of jdk9 early access docs (RIP) -->    <property name="java10.docroot.url" value="https://docs.oracle.com/javase/10/docs"/>
196      <!-- The location of jdk early access docs (RIP) -->
197    <!-- <property name="java9.docroot.url" value="http://download.java.net/java/jdk9/docs"/> -->    <!-- <property name="java9.docroot.url" value="http://download.java.net/java/jdk9/docs"/> -->
198    <!-- Default jdk doc location (latest stable release seems best) -->    <!-- <property name="java10.docroot.url" value="http://download.java.net/java/jdk10/docs"/> -->
   <property name="java10.docroot.url" value="http://download.java.net/java/jdk10/docs"/>  
199    <property name="java11.docroot.url" value="http://download.java.net/java/jdk11/docs"/>    <property name="java11.docroot.url" value="http://download.java.net/java/jdk11/docs"/>
200    <property name="java.docroot.url"   value="${java9.docroot.url}"/>    <!-- Default jdk doc location (latest stable release seems best) -->
201      <property name="java.docroot.url"   value="${java10.docroot.url}"/>
202    
203    <!-- Canonical location of jdk API docs, to use with javadoc link attribute -->    <!-- Canonical location of jdk API docs, to use with javadoc link attribute -->
204    <property name="java5.api.url"      value="${java5.docroot.url}/api/"/>    <property name="java5.api.url"      value="${java5.docroot.url}/api/"/>
# Line 305  Line 307 
307    </macrodef>    </macrodef>
308    
309    <!-- Define jtreg test sets for different jdk versions -->    <!-- Define jtreg test sets for different jdk versions -->
310    <fileset dir="${jtreg11.src.dir}">    <!-- ant -Djtreg.test.pattern="**/ConcurrentHashMap/" -->
311      <patternset id="jdk11.jtreg.tests">    <!-- ant -Djtreg.test.pattern="**/ToArray.java" -->
312        <include name="**/*.java"/>    <property name="jtreg.test.pattern" value="**/*.java"/>
313      </patternset>    <macrodef name="defjtregtests">
314    </fileset>      <attribute name="v"/>
315        <sequential>
316    <fileset dir="${jtreg10.src.dir}">        <fileset dir="${jtreg@{v}.src.dir}">
317      <patternset id="jdk10.jtreg.tests">          <patternset id="jdk@{v}.jtreg.tests">
318        <include name="**/*.java"/>            <include name="${jtreg.test.pattern}"/>
319      </patternset>          </patternset>
320    </fileset>        </fileset>
321        </sequential>
322    <fileset dir="${jtreg9.src.dir}">    </macrodef>
     <patternset id="jdk9.jtreg.tests">  
       <include name="**/*.java"/>  
     </patternset>  
   </fileset>  
   
   <fileset dir="${jtreg8.src.dir}">  
     <patternset id="jdk8.jtreg.tests">  
       <include name="**/*.java"/>  
     </patternset>  
   </fileset>  
323    
324    <fileset dir="${jtreg7.src.dir}">    <defjtregtests v="11"/>
325      <patternset id="jdk7.jtreg.tests">    <defjtregtests v="10"/>
326        <include name="**/*.java"/>    <defjtregtests v="9"/>
327      </patternset>    <defjtregtests v="8"/>
328    </fileset>    <defjtregtests v="7"/>
329    
330    <!-- ant -Djtreg.flags=-timeoutFactor:4 -->    <!-- ant -Djtreg.flags=-timeoutFactor:4 -->
331    <property name="jtreg.flags" value=""/>    <property name="jtreg.flags" value=""/>
# Line 396  Line 388 
388      <sequential>      <sequential>
389        <property name="build.main.java"    value="${java@{v}}"/>        <property name="build.main.java"    value="${java@{v}}"/>
390        <property name="build.main.javac"   value="${javac@{v}}"/>        <property name="build.main.javac"   value="${javac@{v}}"/>
391        <property name="build.main.javadoc" value="${javadoc@{v}}"/>        <!-- Force javadoc version to be at least 10,
392               so we can use override-methods=summary -->
393          <condition property="build.main.javadoc"
394                     value="${javadoc11}"
395                     else="${javadoc@{v}}">
396            <equals arg1="@{v}" arg2="9"/>
397          </condition>
398      </sequential>      </sequential>
399    </macrodef>    </macrodef>
400    <define-build-main-properties v="${build.main.java.version}"/>    <define-build-main-properties v="${build.main.java.version}"/>
# Line 490  Line 488 
488        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
489        <arg value="-html5"/>        <arg value="-html5"/>
490        <arg value="--patch-module=java.base=${src.dir}"/>        <arg value="--patch-module=java.base=${src.dir}"/>
491        <arg value="-tag"/>        <arg value="--override-methods=summary"/>
492        <arg value="${javadoc.jls.option}"/>        <arg value="-tag"/> <arg value="${javadoc.jls.option}"/>
493  <!-- @apiNote currently unused -->        <arg value="-tag"/> <arg value="implSpec:a:Implementation Requirements:"/>
494  <!--       <arg value="-tag"/> -->        <arg value="-tag"/> <arg value="implNote:a:Implementation Note:"/>
495  <!--       <arg value="apiNote:a:API Note:"/> -->        <arg value="-tag"/> <arg value="apiNote:a:API Note:"/>
       <arg value="-tag"/>  
       <arg value="implSpec:a:Implementation Requirements:"/>  
       <arg value="-tag"/>  
       <arg value="implNote:a:Implementation Note:"/>  
496  <!-- tags added in jdk9: currently unused -->  <!-- tags added in jdk9: currently unused -->
497  <!--       <arg value="-tag"/> -->  <!--  <arg value="-tag"/> <arg value="revised:X"/> -->
498  <!--       <arg value="revised:X"/> -->  <!--  <arg value="-tag"/> <arg value="spec:X"/> -->
 <!--       <arg value="-tag"/> -->  
 <!--       <arg value="spec:X"/> -->  
499      </javadoc>      </javadoc>
500    </target>    </target>
501    
# Line 845  Line 837 
837        </fileset>        </fileset>
838        <arg line="-Xdocrootparent ${java8.docroot.url}"/>        <arg line="-Xdocrootparent ${java8.docroot.url}"/>
839        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
840        <arg value="-tag"/>        <arg value="-tag"/> <arg value="${javadoc.jls.option}"/>
841        <arg value="${javadoc.jls.option}"/>        <arg value="-tag"/> <arg value="implSpec:a:&lt;em&gt;Implementation Requirements:&lt;/em&gt;"/>
842  <!-- @apiNote currently unused -->        <arg value="-tag"/> <arg value="implNote:a:&lt;em&gt;Implementation Note:&lt;/em&gt;"/>
843  <!--       <arg value="-tag"/> -->  <!-- @apiNote tag currently unused -->
844  <!--       <arg value="apiNote:a:&lt;em&gt;API Note:&lt;/em&gt;"/> -->  <!--  <arg value="-tag"/> <arg value="apiNote:a:&lt;em&gt;API Note:&lt;/em&gt;"/> -->
       <arg value="-tag"/>  
       <arg value="implSpec:a:&lt;em&gt;Implementation Requirements:&lt;/em&gt;"/>  
       <arg value="-tag"/>  
       <arg value="implNote:a:&lt;em&gt;Implementation Note:&lt;/em&gt;"/>  
845      </javadoc>      </javadoc>
846    </target>    </target>
847    
# Line 1383  Line 1371 
1371    
1372  <!-- Find buglets that can be detected by static build tools -->  <!-- Find buglets that can be detected by static build tools -->
1373    
1374    <target name="lint">  <!--   <target name="lint"> -->
1375      <antcall target="dists">  <!--     <antcall target="dists"> -->
1376        <param name="build.javadoc.access" value="public"/>  <!--       <param name="build.javadoc.access" value="protected"/> -->
1377      </antcall>  <!--     </antcall> -->
1378    </target>  <!--   </target> -->
1379    
1380  <!-- Generates all doclint warnings, even for private methods (rarely useful) -->  <!-- Generates all doclint warnings, even for private methods (rarely useful) -->
1381    <target name="lint-private">    <target name="doclint-private">
1382      <antcall target="dist">      <antcall target="dist">
1383        <param name="build.javadoc.access" value="private"/>        <param name="build.javadoc.access" value="private"/>
1384      </antcall>      </antcall>
# Line 1400  Line 1388 
1388  <!-- ==============================================================  <!-- ==============================================================
1389    Experimental errorprone support - http://errorprone.info    Experimental errorprone support - http://errorprone.info
1390  =================================================================== -->  =================================================================== -->
1391    <property name="errorprone.jar" location="${lib.dir}/error_prone_ant-2.2.0.jar"/>    <property name="errorprone.jar" location="${lib.dir}/error_prone_ant-2.3.1.jar"/>
1392      <property name="errorprone.jsr166.user.flags" value=""/>
1393    <property name="errorprone.jsr166.flags"    <property name="errorprone.jsr166.flags"
1394              value="-Xep:BoxedPrimitiveConstructor:OFF              value="-Xep:HashtableContains:OFF
                    -Xep:HashtableContains:OFF  
1395                     -Xep:JdkObsolete:OFF                     -Xep:JdkObsolete:OFF
                    -Xep:ModifyingCollectionWithItself:OFF  
1396                     -Xep:MissingOverride:OFF                     -Xep:MissingOverride:OFF
1397                     -Xep:MissingFail:OFF                     -Xep:MissingFail:OFF
                    -Xep:IdentityBinaryExpression:WARN  
                    -Xep:MethodCanBeStatic:WARN"/>  
   <!-- -Xep:WildcardImport:ERROR -->  
   <property name="errorprone.jsr166.test.flags"  
             value="-Xep:MissingOverride:OFF  
                    -Xep:StringSplitter:OFF  
1398                     -Xep:MixedArrayDimensions:ERROR                     -Xep:MixedArrayDimensions:ERROR
1399                     -Xep:RemoveUnusedImports:ERROR                     -Xep:RemoveUnusedImports:ERROR
                    -Xep:LongLiteralLowerCaseSuffix:ERROR  
                    -Xep:RedundantThrows:ERROR  
1400                     -Xep:EmptyIf:ERROR                     -Xep:EmptyIf:ERROR
1401                     -Xep:MultipleTopLevelClasses:ERROR                     -Xep:MultipleTopLevelClasses:ERROR
1402                     -Xep:ClassName:ERROR"/>                     -Xep:ClassName:ERROR
1403                       -Xep:LongLiteralLowerCaseSuffix:ERROR
1404                       -Xep:RedundantThrows:ERROR
1405                       -Xep:IdentityBinaryExpression:WARN
1406                       -Xep:MethodCanBeStatic:WARN
1407                       ${errorprone.jsr166.user.flags}"/>
1408      <!-- -Xep:WildcardImport:ERROR -->
1409      <property name="errorprone.jsr166.test.flags"
1410                value="-Xep:StringSplitter:OFF
1411                       -Xep:BoxedPrimitiveConstructor:OFF
1412                       -Xep:ModifyingCollectionWithItself:OFF"/>
1413    <!-- ant -emacs errorprone |& grep -EA1 '(warning|error):|warnings' -->    <!-- ant -emacs errorprone |& grep -EA1 '(warning|error):|warnings' -->
1414    <target name="errorprone"    <target name="errorprone"
1415            depends="clean, configure-compiler"            depends="clean, configure-compiler"
# Line 1443  Line 1432 
1432             fork="true">             fork="true">
1433    
1434        <include name="**/*.java"/>        <include name="**/*.java"/>
1435          <!-- Needed to silence -Xep:FutureReturnValueIgnored -->
1436          <compilerarg value="-J--illegal-access=permit"/>
1437          <compilerarg value="-XDcompilePolicy=simple"/>
1438        <compilerarg line="-processorpath ${errorprone.jar}"/>        <compilerarg line="-processorpath ${errorprone.jar}"/>
1439        <compilerarg value="-Xplugin:ErrorProne        <compilerarg value="-Xplugin:ErrorProne
1440                            ${errorprone.jsr166.flags}"/>                            ${errorprone.jsr166.flags}"/>
# Line 1464  Line 1456 
1456        workdir="${build.dir}"        workdir="${build.dir}"
1457        classes="${product.jar}">        classes="${product.jar}">
1458        <javac-elements>        <javac-elements>
1459            <!-- Needed to silence -Xep:FutureReturnValueIgnored -->
1460            <compilerarg value="-J--illegal-access=permit"/>
1461            <compilerarg value="-XDcompilePolicy=simple"/>
1462          <compilerarg line="-processorpath ${errorprone.jar}"/>          <compilerarg line="-processorpath ${errorprone.jar}"/>
1463          <compilerarg value="-Xplugin:ErrorProne          <compilerarg value="-Xplugin:ErrorProne
1464                              ${errorprone.jsr166.flags}                              ${errorprone.jsr166.flags}
# Line 1485  Line 1480 
1480         classes="${product.jar}"         classes="${product.jar}"
1481         verbose="all">         verbose="all">
1482        <jtreg-elements>        <jtreg-elements>
1483          <arg value="-javacoption:-XDcompilePolicy=byfile"/>          <arg value="-javacoption:-XDcompilePolicy=simple"/>
1484          <arg value="-javacoption:-processorpath"/>          <arg value="-javacoption:-processorpath"/>
1485          <arg value="-javacoption:${errorprone.jar}"/>          <arg value="-javacoption:${errorprone.jar}"/>
1486          <arg value="-javacoption:-Xplugin:ErrorProne          <arg value="-javacoption:-Xplugin:ErrorProne
1487                              ${errorprone.jsr166.flags}                              ${errorprone.jsr166.flags}
1488                              ${errorprone.jsr166.test.flags}                              ${errorprone.jsr166.test.flags}
1489                                -Xep:MultipleTopLevelClasses:WARN
1490                              -Xep:NonAtomicVolatileUpdate:OFF"/>                              -Xep:NonAtomicVolatileUpdate:OFF"/>
1491        </jtreg-elements>        </jtreg-elements>
1492      </run-jtreg-tests>      </run-jtreg-tests>

Legend:
Removed from v.1.262  
changed lines
  Added in v.1.273

dl@cs.oswego.edu
ViewVC Help
Powered by ViewVC 1.1.27