Compiling the OOXML xsds requires a bit more memory if on a 64 bit jvm
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@984064 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8738b8858b
commit
16dac5b8f3
@ -380,6 +380,13 @@ under the License.
|
|||||||
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
||||||
classpath="${ooxml.xmlbeans.jar}:${ooxml.jsr173.jar}"/>
|
classpath="${ooxml.xmlbeans.jar}:${ooxml.jsr173.jar}"/>
|
||||||
|
|
||||||
|
<!-- We need a fair amount of memory to compile the xml schema, -->
|
||||||
|
<!-- but limit it in case it goes wrong! -->
|
||||||
|
<!-- Pick the right amount based on 32 vs 64 bit jvm -->
|
||||||
|
<condition property="ooxml.memory" value="768m" else="512m">
|
||||||
|
<equals arg1="${sun.arch.data.model}" arg2="64" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
<unzip src="${ooxml.xsds.izip}" dest="${ooxml.xsds.tmp.dir}"/>
|
<unzip src="${ooxml.xsds.izip}" dest="${ooxml.xsds.tmp.dir}"/>
|
||||||
<!--
|
<!--
|
||||||
schema="build/ooxml-xsds/"
|
schema="build/ooxml-xsds/"
|
||||||
@ -393,7 +400,7 @@ under the License.
|
|||||||
javasource="1.5"
|
javasource="1.5"
|
||||||
failonerror="true"
|
failonerror="true"
|
||||||
fork="true"
|
fork="true"
|
||||||
memoryMaximumSize="512m"
|
memoryMaximumSize="${ooxml.memory}"
|
||||||
>
|
>
|
||||||
<classpath refid="ooxml.classpath"/>
|
<classpath refid="ooxml.classpath"/>
|
||||||
</xmlbean>
|
</xmlbean>
|
||||||
|
Loading…
Reference in New Issue
Block a user