poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r832596 - in /poi/trunk: build.xml src/documentation/content/xdocs/status.xml
Date Tue, 03 Nov 2009 23:20:34 GMT
Author: nick
Date: Tue Nov  3 23:20:33 2009
New Revision: 832596

URL: http://svn.apache.org/viewvc?rev=832596&view=rev
Log:
When running the "compile-ooxml-xsds" ant task, also generate the source jar for the OOXML
Schemas

Modified:
    poi/trunk/build.xml
    poi/trunk/src/documentation/content/xdocs/status.xml

Modified: poi/trunk/build.xml
URL: http://svn.apache.org/viewvc/poi/trunk/build.xml?rev=832596&r1=832595&r2=832596&view=diff
==============================================================================
--- poi/trunk/build.xml (original)
+++ poi/trunk/build.xml Tue Nov  3 23:20:33 2009
@@ -138,6 +138,9 @@
   <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.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="maven.ooxml.xsds.version.id" value="1.0"/>
@@ -292,6 +295,7 @@
         <mkdir dir="${jdepend.report.dir}"/>
         <mkdir dir="${jdepend.report.out.dir}"/>
         <mkdir dir="${apidocs.report.dir}"/>
+        <mkdir dir="${ooxml.xsds.tmp.dir}" />
         <mkdir dir="${dist.dir}"/>
         <mkdir dir="${build.site.src}/${main.documentation}"/>
 
@@ -409,23 +413,31 @@
 	 description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
 		<taskdef name="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/sml-workbook.xsd"
 		-->
 		<xmlbean
-			schema="build/ooxml-xsds/"
+			schema="${ooxml.xsds.tmp.dir}"
+			srcgendir="${ooxml.xsds.src.dir}"
+			optimize="yes"
 			destfile="${ooxml.xsds.jar}"
-			javasource="1.4"
+			javasource="1.5"
 			failonerror="true"
 			fork="true"
 			memoryMaximumSize="512m"
 		>
 			<classpath refid="ooxml.classpath"/>
 		</xmlbean>
+
+		<!-- Now make a jar of the schema sources -->
+		<jar
+			basedir="${ooxml.xsds.src.dir}"
+			destfile="${ooxml.xsds.src.jar}"
+		/>
 	</target>
 
   <target name="compile" depends="init, compile-main, 

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=832596&r1=832595&r2=832596&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Tue Nov  3 23:20:33 2009
@@ -34,6 +34,7 @@
 
     <changes>
         <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">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>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message