Browse Source

launch Ant project tests by passing java.security.manager=allow on Java 18

master
Jaikiran Pai 3 years ago
parent
commit
f3e3345e8a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      build.xml

+ 10
- 0
build.xml View File

@@ -1756,6 +1756,9 @@ ${antunit.reports}
<javaversion atleast="9"/>
</not>
</condition>
<condition property="java.security.manager" value="allow">
<javaversion exactly="18"/>
</condition>
<macrodef name="test-junit">
<element name="junit-nested" implicit="true"/>
<sequential>
@@ -1806,6 +1809,13 @@ ${antunit.reports}
<syspropertyset>
<propertyref name="sun.io.useCanonCaches"/>
</syspropertyset>
<!-- Many JUnit tests, in the Ant project, launch Java programs through Ant's
java task, which internally calls System.setSecurityManager(). In Java 18
an explicit system property value needs to be set to prevent exception from
being thrown from that call -->
<syspropertyset>
<propertyref name="java.security.manager"/>
</syspropertyset>
<classpath>
<path refid="tests-runtime-classpath"/>
<pathelement location="${junit.collector.dir}"/>


Loading…
Cancel
Save