LUCENE-8035: Run tests with JDK-specific options: --illegal-access=deny on Java 9+

This commit is contained in:
Uwe Schindler 2017-11-04 19:56:57 +01:00
parent 3ab1a07662
commit 4ca51a06f7
2 changed files with 12 additions and 0 deletions

View File

@ -63,6 +63,11 @@ Optimizations
number of hits is small relative to the number of unique facet labels number of hits is small relative to the number of unique facet labels
(Dawid Weiss, Robert Muir, Mike McCandless) (Dawid Weiss, Robert Muir, Mike McCandless)
Tests
* LUCENE-8035: Run tests with JDK-specific options: --illegal-access=deny
on Java 9+. (Uwe Schindler)
Build Build
* LUCENE-6144: Upgrade Ivy to 2.4.0; 'ant ivy-bootstrap' now removes old Ivy * LUCENE-6144: Upgrade Ivy to 2.4.0; 'ant ivy-bootstrap' now removes old Ivy

View File

@ -960,6 +960,12 @@
<istrue value="${tests.useSecurityManager}"/> <istrue value="${tests.useSecurityManager}"/>
</condition> </condition>
<!-- additional arguments for Java 9+ -->
<local name="tests.runtimespecific.args"/>
<condition property="tests.runtimespecific.args" value="" else="--illegal-access=deny">
<equals arg1="${build.java.runtime}" arg2="1.8"/>
</condition>
<!-- create a fileset pattern that matches ${tests.class}. --> <!-- create a fileset pattern that matches ${tests.class}. -->
<loadresource property="tests.explicitclass" quiet="true"> <loadresource property="tests.explicitclass" quiet="true">
<propertyresource name="tests.class" /> <propertyresource name="tests.class" />
@ -1040,6 +1046,7 @@
<jvmarg line="${tests.clover.args}"/> <jvmarg line="${tests.clover.args}"/>
<jvmarg line="@{additional.vm.args}"/> <jvmarg line="@{additional.vm.args}"/>
<jvmarg line="${tests.asserts.args}"/> <jvmarg line="${tests.asserts.args}"/>
<jvmarg line="${tests.runtimespecific.args}"/>
<!-- set the number of times tests should run --> <!-- set the number of times tests should run -->
<sysproperty key="tests.iters" value="${tests.iters}"/> <sysproperty key="tests.iters" value="${tests.iters}"/>