Browse Source

try to disable cache conditionally

master
Stefan Bodewig 7 years ago
parent
commit
a8bbb8be52
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      build.xml

+ 10
- 2
build.xml View File

@@ -1620,6 +1620,11 @@ ${antunit.reports}


<target name="test-init" depends="probe-offline,check_for_optional_packages"> <target name="test-init" depends="probe-offline,check_for_optional_packages">
<mkdir dir="${build.junit.tmpdir}"/> <mkdir dir="${build.junit.tmpdir}"/>
<condition property="sun.io.useCanonCaches" value="false">
<not>
<javaversion atleast="9"/>
</not>
</condition>
<macrodef name="test-junit"> <macrodef name="test-junit">
<element name="junit-nested" implicit="true" /> <element name="junit-nested" implicit="true" />
<sequential> <sequential>
@@ -1665,8 +1670,11 @@ ${antunit.reports}
<sysproperty key="tests.and.ant.share.classloader" <sysproperty key="tests.and.ant.share.classloader"
value="${tests.and.ant.share.classloader}"/> value="${tests.and.ant.share.classloader}"/>
<sysproperty key="java.io.tmpdir" file="${build.junit.tmpdir}"/> <sysproperty key="java.io.tmpdir" file="${build.junit.tmpdir}"/>
<sysproperty key="sun.io.useCanonCaches" value="false"/>
<sysproperty key="sun.io.useCanonPrefixCache" value="false"/>
<!-- in Java8 the canonical cache seems to interfere with
our symlink tests -->
<syspropertyset>
<propertyref name="sun.io.useCanonCaches"/>
</syspropertyset>
<classpath> <classpath>
<path refid="tests-runtime-classpath"/> <path refid="tests-runtime-classpath"/>
<pathelement location="${junit.collector.dir}"/> <pathelement location="${junit.collector.dir}"/>


Loading…
Cancel
Save