Some people may find the tests hang when run through Ant. If this
happens to you, try giving Ant some more memory when you run it, eg:
- ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m" ant test
+ ANT_OPTS="-Xmx1024m" ant test
-->
<project name="POI Build" default="help" basedir="."
<propertyref name="version.id"/> <!-- to detect if we are running on slow Gump VM -->
</propertyset>
- <!-- this needs to be overwriten to empty when running with Java 9 -->
- <property name="maxpermsize" value="-XX:MaxPermSize=256m"/>
<!-- these need to be set differently when running with Java 9 -->
<property name="java9addmods" value="-Dthis.is.a.dummy=true"/>
<property name="javadoc9addmods" value="-J-Dthis.is.a.dummy=true"/>
<path refid="test.jar.classpath"/>
</classpath>
<syspropertyset refid="junit.properties"/>
- <jvmarg value="${maxpermsize}"/>
<jvmarg value="-Xmx768M"/>
<jvmarg value="-ea"/>
<jvmarg value="${java9addmods}" />
failureproperty="ooxml.ss.test.failed">
<classpath refid="@{classpath}"/>
<syspropertyset refid="junit.properties"/>
- <jvmarg value="${maxpermsize}"/>
<jvmarg value="-Xmx768M"/>
<jvmarg value="-ea"/>
<jvmarg value="${java9addmods}" />
<classpath refid="test.ooxml.classpath"/>
<classpath refid="ooxml.xmlsec.classpath"/>
<syspropertyset refid="junit.properties"/>
- <jvmarg value="${maxpermsize}"/>
<jvmarg value="-Xmx512m"/>
<jvmarg value="${java9addmods}" />
<jvmarg value="${java9addmodsvalue}" />
skipcigame: true
],
[ name: 'POI-DSL-1.9', jdk: '1.9', trigger: triggerSundays,
- properties: ['-Dmaxpermsize=-Dthis.is.a.dummy=true',
- '-Djava9addmods=--add-modules=java.xml.bind',
+ properties: ['-Djava9addmods=--add-modules=java.xml.bind',
'-Djavadoc9addmods=--add-modules=java.xml.bind',
'-Djava9addmodsvalue=-Dsun.reflect.debugModuleAccessChecks=true',
'-Djava9addopens1=--add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED',
rootPOM('sonar/pom.xml')
mavenOpts('-Xmx2g')
mavenOpts('-Xms256m')
- mavenOpts('-XX:MaxPermSize=512m')
mavenOpts('-XX:-OmitStackTraceInFastThrow')
localRepository(LocalRepositoryLocation.LOCAL_TO_WORKSPACE)
mavenInstallation('maven-3.2.1')
</activation>
<properties>
<maven.compiler.maxmem>512m</maven.compiler.maxmem>
- <argLine>-Xmx768m -XX:MaxPermSize=128m</argLine>
+ <argLine>-Xmx768m</argLine>
</properties>
</profile>
</activation>
<properties>
<maven.compiler.maxmem>768m</maven.compiler.maxmem>
- <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
+ <argLine>-Xmx1024m</argLine>
</properties>
</profile>