]> source.dussan.org Git - poi.git/commitdiff
Prepare build.xml for initial Java 9 testing:
authorDominik Stadler <centic@apache.org>
Sun, 29 May 2016 21:33:28 +0000 (21:33 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 29 May 2016 21:33:28 +0000 (21:33 +0000)
* Allow to remove PermGenSize, this is not available any more in Java 9
* Allow to pass in java.locale.providers

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1746059 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index e906c8f25502c85e30f9b514b5d074471ba4807e..72faf4578a560000ad77c624837c4ea8517e0cb0 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -286,7 +286,11 @@ under the License.
         <propertyref name="user.country"/>
         <propertyref name="javax.xml.stream.XMLInputFactory"/>
        <propertyref name="org.apache.commons.logging.Log"/>
+        <propertyref name="java.locale.providers"/>            <!-- required for Java 9 compilation -->
     </propertyset>
+    
+    <!-- this can be overwriten to empty when running with Java 9 -->
+    <property name="maxpermsize" value="-XX:MaxPermSize=256m"/>
 
     <path id="main.classpath">
         <pathelement location="${main.commons-logging.jar}"/>
@@ -1353,7 +1357,7 @@ under the License.
                      failureproperty="ooxml.test.failed">
                   <classpath refid="@{classpath}"/>
                   <syspropertyset refid="junit.properties"/>
-                    <jvmarg value="-XX:MaxPermSize=256m"/>
+                    <jvmarg value="${maxpermsize}"/>
                     <jvmarg value="-Xmx768M"/>
                   <jvmarg value="-ea"/>
                     <!-- jvmarg value="-Duser.timezone=UTC"/ -->
@@ -1419,7 +1423,7 @@ under the License.
                      failureproperty="ooxml.ss.test.failed">
                   <classpath refid="@{classpath}"/>
                   <syspropertyset refid="junit.properties"/>
-                    <jvmarg value="-XX:MaxPermSize=256m"/>
+                    <jvmarg value="${maxpermsize}"/>
                     <jvmarg value="-Xmx768M"/>
                   <jvmarg value="-ea"/>
                     <!-- jvmarg value="-Duser.timezone=UTC"/ -->
@@ -1503,7 +1507,7 @@ under the License.
             <classpath refid="test.ooxml.classpath"/>
             <classpath refid="ooxml.xmlsec.classpath"/>
             <syspropertyset refid="junit.properties"/>
-            <jvmarg value="-XX:MaxPermSize=256m"/>
+            <jvmarg value="${maxpermsize}"/>
             <jvmarg value="-Xmx512m"/>
             <arg value="-ooxml"/>
             <arg value="${ooxml.lite-merged.dir}/ooxml-lite-merged.jar"/>