|
@@ -1756,6 +1756,9 @@ ${antunit.reports} |
|
|
<javaversion atleast="9"/> |
|
|
<javaversion atleast="9"/> |
|
|
</not> |
|
|
</not> |
|
|
</condition> |
|
|
</condition> |
|
|
|
|
|
<condition property="java.security.manager" value="allow"> |
|
|
|
|
|
<javaversion exactly="18"/> |
|
|
|
|
|
</condition> |
|
|
<macrodef name="test-junit"> |
|
|
<macrodef name="test-junit"> |
|
|
<element name="junit-nested" implicit="true"/> |
|
|
<element name="junit-nested" implicit="true"/> |
|
|
<sequential> |
|
|
<sequential> |
|
@@ -1806,6 +1809,13 @@ ${antunit.reports} |
|
|
<syspropertyset> |
|
|
<syspropertyset> |
|
|
<propertyref name="sun.io.useCanonCaches"/> |
|
|
<propertyref name="sun.io.useCanonCaches"/> |
|
|
</syspropertyset> |
|
|
</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> |
|
|
<classpath> |
|
|
<path refid="tests-runtime-classpath"/> |
|
|
<path refid="tests-runtime-classpath"/> |
|
|
<pathelement location="${junit.collector.dir}"/> |
|
|
<pathelement location="${junit.collector.dir}"/> |
|
|