mirror of https://github.com/apache/poi.git
Try to set java.io.tmpdir for tests to avoid the strange permission errors that we see in CI-builds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4bc4e1f4e9
commit
731d089005
13
build.xml
13
build.xml
|
@ -91,7 +91,7 @@ under the License.
|
||||||
<property name="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
|
<property name="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
|
||||||
<!-- need to override POILogger property before commons logging works -->
|
<!-- need to override POILogger property before commons logging works -->
|
||||||
<property name="org.apache.commons.logging.Log" value="org.apache.commons.logging.impl.Log4JLogger"/>
|
<property name="org.apache.commons.logging.Log" value="org.apache.commons.logging.impl.Log4JLogger"/>
|
||||||
|
<property name="tempdir" value="build/tmp"/>
|
||||||
|
|
||||||
<!-- Main: -->
|
<!-- Main: -->
|
||||||
<property name="main.resource1.dir" value="src/resources/main"/>
|
<property name="main.resource1.dir" value="src/resources/main"/>
|
||||||
|
@ -1263,6 +1263,7 @@ under the License.
|
||||||
<classpath refid="test.classpath"/>
|
<classpath refid="test.classpath"/>
|
||||||
<classpath refid="test.jar.classpath"/>
|
<classpath refid="test.jar.classpath"/>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
<jvmarg value="-ea"/>
|
<jvmarg value="-ea"/>
|
||||||
<jvmarg value="-Xmx256m"/>
|
<jvmarg value="-Xmx256m"/>
|
||||||
<!-- jvmarg value="-Duser.timezone=UTC"/ -->
|
<!-- jvmarg value="-Duser.timezone=UTC"/ -->
|
||||||
|
@ -1328,6 +1329,7 @@ under the License.
|
||||||
<classpath refid="test.scratchpad.classpath"/>
|
<classpath refid="test.scratchpad.classpath"/>
|
||||||
<classpath refid="test.jar.classpath"/>
|
<classpath refid="test.jar.classpath"/>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
<jvmarg value="-ea"/>
|
<jvmarg value="-ea"/>
|
||||||
<!-- jvmarg value="-Duser.timezone=UTC"/ -->
|
<!-- jvmarg value="-Duser.timezone=UTC"/ -->
|
||||||
<jvmarg value="${file.leak.detector}" />
|
<jvmarg value="${file.leak.detector}" />
|
||||||
|
@ -1384,7 +1386,8 @@ under the License.
|
||||||
<path refid="test.jar.classpath"/>
|
<path refid="test.jar.classpath"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
<jvmarg value="-Xmx768M"/>
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
|
<jvmarg value="-Xmx768M"/>
|
||||||
<jvmarg value="-ea"/>
|
<jvmarg value="-ea"/>
|
||||||
<jvmarg value="${java9addmods}" />
|
<jvmarg value="${java9addmods}" />
|
||||||
<jvmarg value="${java9addmodsvalue}" />
|
<jvmarg value="${java9addmodsvalue}" />
|
||||||
|
@ -1418,7 +1421,8 @@ under the License.
|
||||||
<path refid="ooxml.xmlsec.classpath"/>
|
<path refid="ooxml.xmlsec.classpath"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
<jvmarg value="-Xmx768M"/>
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
|
<jvmarg value="-Xmx768M"/>
|
||||||
<jvmarg value="-ea"/>
|
<jvmarg value="-ea"/>
|
||||||
<jvmarg value="${java9addmods}" />
|
<jvmarg value="${java9addmods}" />
|
||||||
<jvmarg value="${java9addmodsvalue}" />
|
<jvmarg value="${java9addmodsvalue}" />
|
||||||
|
@ -1466,6 +1470,7 @@ under the License.
|
||||||
failureproperty="integration.test.failed" showoutput="true">
|
failureproperty="integration.test.failed" showoutput="true">
|
||||||
<classpath refid="test.integration.classpath"/>
|
<classpath refid="test.integration.classpath"/>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
<jvmarg value="-ea"/>
|
<jvmarg value="-ea"/>
|
||||||
<jvmarg value="-Xmx1512M"/>
|
<jvmarg value="-Xmx1512M"/>
|
||||||
<jvmarg value="${java9addmods}" />
|
<jvmarg value="${java9addmods}" />
|
||||||
|
@ -1525,6 +1530,7 @@ under the License.
|
||||||
<classpath refid="test.ooxml.classpath"/>
|
<classpath refid="test.ooxml.classpath"/>
|
||||||
<classpath refid="ooxml.xmlsec.classpath"/>
|
<classpath refid="ooxml.xmlsec.classpath"/>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
<jvmarg value="-Xmx512m"/>
|
<jvmarg value="-Xmx512m"/>
|
||||||
<jvmarg value="${java9addmods}" />
|
<jvmarg value="${java9addmods}" />
|
||||||
<jvmarg value="${java9addmodsvalue}" />
|
<jvmarg value="${java9addmodsvalue}" />
|
||||||
|
@ -1570,6 +1576,7 @@ under the License.
|
||||||
failureproperty="excelant.test.failed">
|
failureproperty="excelant.test.failed">
|
||||||
<classpath refid="test.excelant.classpath"/>
|
<classpath refid="test.excelant.classpath"/>
|
||||||
<syspropertyset refid="junit.properties"/>
|
<syspropertyset refid="junit.properties"/>
|
||||||
|
<sysproperty key="java.io.tmpdir" value="${tempdir}"/>
|
||||||
<jvmarg value="-ea"/>
|
<jvmarg value="-ea"/>
|
||||||
<jvmarg value="${java9addmods}" />
|
<jvmarg value="${java9addmods}" />
|
||||||
<jvmarg value="${java9addmodsvalue}" />
|
<jvmarg value="${java9addmodsvalue}" />
|
||||||
|
|
Loading…
Reference in New Issue