When running the "compile-ooxml-xsds" ant task, also generate the source jar for the OOXML Schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@832596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5fe87ca952
commit
f3375be693
20
build.xml
20
build.xml
@ -138,6 +138,9 @@ under the License.
|
|||||||
<property name="ooxml.xsds.ozip" location="${ooxml.lib}/OfficeOpenXML-Part4.zip"/>
|
<property name="ooxml.xsds.ozip" location="${ooxml.lib}/OfficeOpenXML-Part4.zip"/>
|
||||||
<property name="ooxml.xsds.izip" location="${ooxml.lib}/OfficeOpenXML-XMLSchema.zip"/>
|
<property name="ooxml.xsds.izip" location="${ooxml.lib}/OfficeOpenXML-XMLSchema.zip"/>
|
||||||
<property name="ooxml.xsds.url" value="http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip" />
|
<property name="ooxml.xsds.url" value="http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip" />
|
||||||
|
<property name="ooxml.xsds.tmp.dir" location="build/ooxml-xsds"/>
|
||||||
|
<property name="ooxml.xsds.src.dir" location="build/ooxml-xsds-src"/>
|
||||||
|
<property name="ooxml.xsds.src.jar" location="${ooxml.lib}/ooxml-schemas-src.jar"/>
|
||||||
<property name="ooxml.xsds.jar" location="${ooxml.lib}/ooxml-schemas.jar"/>
|
<property name="ooxml.xsds.jar" location="${ooxml.lib}/ooxml-schemas.jar"/>
|
||||||
|
|
||||||
<property name="maven.ooxml.xsds.version.id" value="1.0"/>
|
<property name="maven.ooxml.xsds.version.id" value="1.0"/>
|
||||||
@ -292,6 +295,7 @@ under the License.
|
|||||||
<mkdir dir="${jdepend.report.dir}"/>
|
<mkdir dir="${jdepend.report.dir}"/>
|
||||||
<mkdir dir="${jdepend.report.out.dir}"/>
|
<mkdir dir="${jdepend.report.out.dir}"/>
|
||||||
<mkdir dir="${apidocs.report.dir}"/>
|
<mkdir dir="${apidocs.report.dir}"/>
|
||||||
|
<mkdir dir="${ooxml.xsds.tmp.dir}" />
|
||||||
<mkdir dir="${dist.dir}"/>
|
<mkdir dir="${dist.dir}"/>
|
||||||
<mkdir dir="${build.site.src}/${main.documentation}"/>
|
<mkdir dir="${build.site.src}/${main.documentation}"/>
|
||||||
|
|
||||||
@ -409,23 +413,31 @@ under the License.
|
|||||||
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
||||||
<taskdef name="xmlbean"
|
<taskdef name="xmlbean"
|
||||||
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
||||||
classpath="${ooxml.jar2.dir}:${ooxml.jar3.dir}:${ooxml.jar4.dir}:${ooxml.jar4.dir}:${ooxml.jar5.dir}" />
|
classpath="${ooxml.dom4j.jar}:${ooxml.xmlbeans.jar}:${ooxml.jsr173.jar}" />
|
||||||
|
|
||||||
<unzip src="${ooxml.xsds.izip}" dest="build/ooxml-xsds/" />
|
<unzip src="${ooxml.xsds.izip}" dest="${ooxml.xsds.tmp.dir}" />
|
||||||
<!--
|
<!--
|
||||||
schema="build/ooxml-xsds/"
|
schema="build/ooxml-xsds/"
|
||||||
schema="build/ooxml-xsds/sml-workbook.xsd"
|
schema="build/ooxml-xsds/sml-workbook.xsd"
|
||||||
-->
|
-->
|
||||||
<xmlbean
|
<xmlbean
|
||||||
schema="build/ooxml-xsds/"
|
schema="${ooxml.xsds.tmp.dir}"
|
||||||
|
srcgendir="${ooxml.xsds.src.dir}"
|
||||||
|
optimize="yes"
|
||||||
destfile="${ooxml.xsds.jar}"
|
destfile="${ooxml.xsds.jar}"
|
||||||
javasource="1.4"
|
javasource="1.5"
|
||||||
failonerror="true"
|
failonerror="true"
|
||||||
fork="true"
|
fork="true"
|
||||||
memoryMaximumSize="512m"
|
memoryMaximumSize="512m"
|
||||||
>
|
>
|
||||||
<classpath refid="ooxml.classpath"/>
|
<classpath refid="ooxml.classpath"/>
|
||||||
</xmlbean>
|
</xmlbean>
|
||||||
|
|
||||||
|
<!-- Now make a jar of the schema sources -->
|
||||||
|
<jar
|
||||||
|
basedir="${ooxml.xsds.src.dir}"
|
||||||
|
destfile="${ooxml.xsds.src.jar}"
|
||||||
|
/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="init, compile-main,
|
<target name="compile" depends="init, compile-main,
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
<changes>
|
<changes>
|
||||||
<release version="3.6-beta1" date="2009-??-??">
|
<release version="3.6-beta1" date="2009-??-??">
|
||||||
|
<action dev="POI-DEVELOPERS" type="add">When running the "compile-ooxml-xsds" ant task, also generate the source jar for the OOXML Schemas</action>
|
||||||
<action dev="POI-DEVELOPERS" type="fix">45672 - improve handling by MissingRecordAwareHSSFListener of records that cover multiple cells (MulBlankRecord and MulRKRecord)</action>
|
<action dev="POI-DEVELOPERS" type="fix">45672 - improve handling by MissingRecordAwareHSSFListener of records that cover multiple cells (MulBlankRecord and MulRKRecord)</action>
|
||||||
<action dev="POI-DEVELOPERS" type="fix">48096 - relaxed validation check in RecalcIdRecord</action>
|
<action dev="POI-DEVELOPERS" type="fix">48096 - relaxed validation check in RecalcIdRecord</action>
|
||||||
<action dev="POI-DEVELOPERS" type="fix">48085 - improved error checking in BlockAllocationTableReader to trap unreasonable field values</action>
|
<action dev="POI-DEVELOPERS" type="fix">48085 - improved error checking in BlockAllocationTableReader to trap unreasonable field values</action>
|
||||||
|
Loading…
Reference in New Issue
Block a user