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.248 by jsr166, Sat Jun 17 01:26:31 2017 UTC vs.
Revision 1.252 by jsr166, Tue Sep 19 22:41:18 2017 UTC

# Line 346 | Line 346
346             workDir="@{workdir}/JTwork">
347        <patternset refid="jdk@{target}.jtreg.tests"/>
348        <arg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/>
349 <      <arg value="-javacoptions:--patch-module java.base=@{classes}" if:set="modules"/>
350 <      <arg value="-vmoptions:--patch-module java.base=@{classes}" if:set="modules"/>
349 >      <arg value="-javacoptions:--patch-module=java.base=@{classes}" if:set="modules"/>
350 >      <arg value="-vmoptions:--patch-module=java.base=@{classes}" if:set="modules"/>
351        <arg value="-agentvm"/>
352        <arg value="-noreport"/>
353        <arg value="-verbose:${jtreg.verbose}"/>
# Line 610 | Line 610
610        <param name="build.main.java.version" value="10"/>
611      </antcall>
612  
613 +    <!-- Clean up to avoid obscure wrong class file version bugs -->
614 +    <antcall target="clean"/>
615 +
616    </target>
617  
618  
# Line 1373 | Line 1376
1376  
1377   <!-- ==============================================================
1378    Experimental errorprone support - http://errorprone.info
1376  You may need to bring your own errorprone jar.
1379   =================================================================== -->
1380    <target name="errorprone"
1381            depends="clean, configure-compiler"
# Line 1396 | Line 1398
1398             fork="true">
1399  
1400        <include name="**/*.java"/>
1401 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"/>
1400 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"/>
1401 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED"/>
1402 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED"/>
1403 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED"/>
1404 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED"/>
1405 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED"/>
1406 <      <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED"/>
1407 <      <compilerarg value="-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED"/>
1408 <      <compilerarg line="-processorpath ${lib.dir}/error_prone_ant-2.0.20-SNAPSHOT.jar"/>
1401 >      <compilerarg line="-processorpath ${lib.dir}/error_prone_ant-2.0.21.jar"/>
1402        <compilerarg value="-Xplugin:ErrorProne
1403                            -Xep:IdentityBinaryExpression:WARN
1404                            -Xep:MissingOverride:OFF
# Line 1415 | Line 1408
1408                            -Xep:MultipleTopLevelClasses:ERROR
1409                            -Xep:EmptyIf:ERROR
1410                            -Xep:LongLiteralLowerCaseSuffix:ERROR
1418                          -Xep:ArgumentParameterSwap:ERROR
1411                            -Xep:RedundantThrows:ERROR
1412                            -Xep:MethodCanBeStatic:WARN"/>
1413        <compilerarg value="--patch-module=java.base=${src.dir}"/>
# Line 1436 | Line 1428
1428        workdir="${build.dir}"
1429        classes="${product.jar}">
1430        <javac-elements>
1431 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"/>
1440 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"/>
1441 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED"/>
1442 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED"/>
1443 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED"/>
1444 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED"/>
1445 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED"/>
1446 <        <compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED"/>
1447 <        <compilerarg value="-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED"/>
1448 <        <compilerarg line="-processorpath ${lib.dir}/error_prone_ant-2.0.20-SNAPSHOT.jar"/>
1431 >        <compilerarg line="-processorpath ${lib.dir}/error_prone_ant-2.0.21.jar"/>
1432          <compilerarg value="-Xplugin:ErrorProne
1433                              -Xep:IdentityBinaryExpression:WARN
1434                              -Xep:BoxedPrimitiveConstructor:OFF
# Line 1458 | Line 1441
1441                              -Xep:MultipleTopLevelClasses:ERROR
1442                              -Xep:EmptyIf:ERROR
1443                              -Xep:LongLiteralLowerCaseSuffix:ERROR
1461                            -Xep:ArgumentParameterSwap:ERROR
1444                              -Xep:RedundantThrows:ERROR
1445                              -Xep:MethodCanBeStatic:WARN"/>
1446          <compilerarg line="-Xmaxerrs 3000 -Xmaxwarns 3000"/>
# Line 1520 | Line 1502
1502           dest="${guava.dir}/guava-testlib-tests.jar" usetimestamp="true"/>
1503      <junit printsummary="true" showoutput="true" haltonfailure="true"
1504             jvm="${build.main.java}" fork="true">
1505 <      <jvmarg line="-ea -esa --patch-module java.base=${product.jar}"/>
1505 >      <jvmarg line="-ea -esa --patch-module=java.base=${product.jar}"/>
1506        <formatter type="brief"/>
1507        <classpath>
1508          <pathelement location="${guava.dir}/guava-testlib-tests.jar"/>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines