incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devin...@apache.org
Subject svn commit: r1209371 - in /incubator/odf/trunk: generator/schema2template/ generator/schema2template/src/main/java/schema2template/example/odf/ generator/schema2template/src/main/resources/examples/odf/ generator/schema2template/src/main/resources/exam...
Date Fri, 02 Dec 2011 06:37:16 GMT
Author: devinhan
Date: Fri Dec  2 06:37:13 2011
New Revision: 1209371

URL: http://svn.apache.org/viewvc?rev=1209371&view=rev
Log:
Remove ODF and MathML schemas from SVN repository and update pom.xml to download them automatically
when building.

Removed:
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/OpenDocument-schema-v1.0-os.rng
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/OpenDocument-schema-v1.1.rng
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/OpenDocument-strict-schema-v1.0-os.rng
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/OpenDocument-strict-schema-v1.1.rng
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/OpenDocument-v1.2-csprd03-schema.rng
    incubator/odf/trunk/odfdom/src/codegen/resources/dom/OpenDocument-schema-v1.1.rng
    incubator/odf/trunk/odfdom/src/codegen/resources/dom/OpenDocument-v1.2-cd05-rev02-schema.rng
    incubator/odf/trunk/odfdom/src/codegen/resources/pkg/OpenDocument-manifest-schema-v1.2-draft7.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml1.01/math.dtd
    incubator/odf/trunk/validator/src/main/resources/schema/mathml1.01/w3c_ipr_software_notice.html
    incubator/odf/trunk/validator/src/main/resources/schema/mathml2.0/mathml2.xsd
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/algebra-logic.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/algebra-logic.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/basic-content-elements.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/basic-content-elements.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/calculus_veccalc.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/calculus_veccalc.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/constants.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/constants.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/errors.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/errors.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/linear_algebra.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/linear_algebra.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml-p.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-cds-pragmatic.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-cds-pragmatic.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-cds.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-cds.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-common.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-common.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-content.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-content.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-deprecated.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-deprecated.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-pragmatic.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-pragmatic.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-presentation.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-presentation.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict-content.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict-content.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rng
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rnc
    incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rng
    incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-manifest-schema-v1.0-os.rng
    incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-schema-v1.0-os.rng
    incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-strict-schema-v1.0-os.rng
    incubator/odf/trunk/validator/src/main/resources/schema/odf1.1/OpenDocument-manifest-schema-v1.1.rng
    incubator/odf/trunk/validator/src/main/resources/schema/odf1.1/OpenDocument-schema-v1.1.rng
    incubator/odf/trunk/validator/src/main/resources/schema/odf1.1/OpenDocument-strict-schema-v1.1.rng
Modified:
    incubator/odf/trunk/generator/schema2template/pom.xml
    incubator/odf/trunk/generator/schema2template/src/main/java/schema2template/example/odf/OdfHelper.java
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/copyright.txt
    incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/output-files.vm
    incubator/odf/trunk/odfdom/pom.xml
    incubator/odf/trunk/odfdom/src/codegen/resources/dom/config.xml
    incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/copyright.txt
    incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/output-files.vm
    incubator/odf/trunk/validator/pom.xml

Modified: incubator/odf/trunk/generator/schema2template/pom.xml
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/generator/schema2template/pom.xml?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/generator/schema2template/pom.xml (original)
+++ incubator/odf/trunk/generator/schema2template/pom.xml Fri Dec  2 06:37:13 2011
@@ -116,11 +116,77 @@
                 <artifactId>apache-rat-plugin</artifactId>
                 <configuration>
                     <excludes>
-                        <exclude>src/main/resources/examples/odf/*.rng</exclude>
                         <exclude>src/test/resources/examples/odf/*.ref</exclude>
                     </excludes>
                 </configuration>
             </plugin>
+            <plugin>
+      			<groupId>org.codehaus.mojo</groupId>
+      			<artifactId>wagon-maven-plugin</artifactId>
+      			<version>1.0-beta-3</version>
+      			<executions>
+        			<execution>
+          				<id>download-odf-schema-v1.2</id>
+          				<phase>process-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.2</url>
+            				<fromFile>cs01/OpenDocument-v1.2-cs01-schema.rng</fromFile>
+            				<toDir>${project.build.directory}/odf-schemas</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-schema-v1.1</id>
+          				<phase>process-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.1</url>
+            				<fromFile>OS/OpenDocument-schema-v1.1.rng</fromFile>
+            				<toDir>${project.build.directory}/odf-schemas</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-strict-schema-v1.1</id>
+          				<phase>process-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.1</url>
+            				<fromFile>OS/OpenDocument-strict-schema-v1.1.rng</fromFile>
+            				<toDir>${project.build.directory}/odf-schemas</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-schema-v1.0</id>
+          				<phase>process-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.oasis-open.org/committees/download.php/12571</url>
+            				<fromFile>OpenDocument-schema-v1.0-os.rng</fromFile>
+            				<toDir>${project.build.directory}/odf-schemas</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-strict-schema-v1.0</id>
+          				<phase>process-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.oasis-open.org/committees/download.php/12569</url>
+            				<fromFile>OpenDocument-strict-schema-v1.0-os.rng</fromFile>
+            				<toDir>${project.build.directory}/odf-schemas</toDir>
+          				</configuration>
+        			</execution>
+      			</executions>
+    		</plugin>
 		</plugins>
 	</build>
 	<!-- <distributionManagement>

Modified: incubator/odf/trunk/generator/schema2template/src/main/java/schema2template/example/odf/OdfHelper.java
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/generator/schema2template/src/main/java/schema2template/example/odf/OdfHelper.java?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/generator/schema2template/src/main/java/schema2template/example/odf/OdfHelper.java
(original)
+++ incubator/odf/trunk/generator/schema2template/src/main/java/schema2template/example/odf/OdfHelper.java
Fri Dec  2 06:37:13 2011
@@ -86,13 +86,12 @@ public class OdfHelper {
 	public static final int ODF12_ATTRIBUTE_NUMBER = 1300; //in RNG 1301 as there is one deprecated
attribute on foreign elements not referenced (ie. @office:process-content)
 	public static String odfResourceDir;
 	public static String outputRoot;
-	public static final String INPUT_ROOT = "target" + File.separator + "classes" + File.separator
-			+ "examples" + File.separator + "odf";
+	public static final String INPUT_ROOT = "target" + File.separator + "odf-schemas";
 	public static final String TEST_INPUT_ROOT = "target" + File.separator + "test-classes"
+ File.separator
 			+ "examples" + File.separator + "odf";
 	public static final String ODF10_RNG_FILE_NAME = "OpenDocument-strict-schema-v1.0-os.rng";
 	public static final String ODF11_RNG_FILE_NAME = "OpenDocument-strict-schema-v1.1.rng";
-	public static final String ODF12_RNG_FILE_NAME = "OpenDocument-v1.2-csprd03-schema.rng";
+	public static final String ODF12_RNG_FILE_NAME = "OpenDocument-v1.2-cs01-schema.rng";
 	public static String odf12RngFile;
 	public static String odf11RngFile;
 	public static String odf10RngFile;

Modified: incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/copyright.txt
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/copyright.txt?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/copyright.txt
(original)
+++ incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/copyright.txt
Fri Dec  2 06:37:13 2011
@@ -1,23 +1,3 @@
-##################################################################
-## 
-## Licensed to the Apache Software Foundation (ASF) under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  The ASF licenses this file
-## to you under the Apache License, Version 2.0 (the
-## "License"); you may not use this file except in compliance
-## with the License.  You may obtain a copy of the License at
-## 
-##  http://www.apache.org/licenses/LICENSE-2.0
-## 
-## Unless required by applicable law or agreed to in writing,
-## software distributed under the License is distributed on an
-## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-## KIND, either express or implied.  See the License for the
-## specific language governing permissions and limitations
-## under the License.
-##
-##################################################################
 /************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER

Modified: incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/output-files.vm
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/output-files.vm?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/output-files.vm
(original)
+++ incubator/odf/trunk/generator/schema2template/src/main/resources/examples/odf/odfdom-java/output-files.vm
Fri Dec  2 06:37:13 2011
@@ -18,7 +18,6 @@
 ## under the License.
 ##
 ##################################################################
-
 <?xml version="1.0" encoding="UTF-8"?>
 ## Template to create the list of artefacts which are to be generated
 ##

Modified: incubator/odf/trunk/odfdom/pom.xml
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/pom.xml?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/odfdom/pom.xml (original)
+++ incubator/odf/trunk/odfdom/pom.xml Fri Dec  2 06:37:13 2011
@@ -480,6 +480,49 @@
 			<build>
 				<plugins>
 					<plugin>
+      					<groupId>org.codehaus.mojo</groupId>
+      					<artifactId>wagon-maven-plugin</artifactId>
+      					<version>1.0-beta-3</version>
+      					<executions>
+      						<execution>
+          						<id>download-odf-schema-v1.2</id>
+          						<phase>validate</phase>
+          						<goals>
+            						<goal>download-single</goal>
+          						</goals>
+          						<configuration>
+            						<url>dav:http://docs.oasis-open.org/office/v1.2</url>
+            						<fromFile>cs01/OpenDocument-v1.2-cs01-schema.rng</fromFile>
+            						<toDir>${project.build.directory}/odf-schemas</toDir>
+          						</configuration>
+        					</execution>
+        					<execution>
+          						<id>download-odf-manifest-schema-v1.2</id>
+          						<phase>validate</phase>
+          						<goals>
+            						<goal>download-single</goal>
+          						</goals>
+          						<configuration>
+            						<url>dav:http://docs.oasis-open.org/office/v1.2</url>
+            						<fromFile>cs01/OpenDocument-v1.2-cs01-manifest-schema.rng</fromFile>
+            						<toDir>${project.build.directory}/odf-schemas</toDir>
+          						</configuration>
+        					</execution>
+        					<execution>
+          						<id>download-odf-schema-v1.1</id>
+          						<phase>validate</phase>
+          						<goals>
+            						<goal>download-single</goal>
+          						</goals>
+          						<configuration>
+            						<url>dav:http://docs.oasis-open.org/office/v1.1</url>
+            						<fromFile>OS/OpenDocument-schema-v1.1.rng</fromFile>
+            						<toDir>${project.build.directory}/odf-schemas</toDir>
+          						</configuration>
+        					</execution>
+        				</executions>
+    				</plugin>
+					<plugin>
 						<groupId>${project.groupId}</groupId>
 						<artifactId>schema2template-maven-plugin</artifactId>
 						<version>${project.version}</version>
@@ -494,8 +537,8 @@
 								<configuration>
 									<targetRoot>${basedir}/src/main/java/</targetRoot>
 									<resourceRoot>${basedir}/src/codegen/resources/dom/template</resourceRoot>
-									<odf12SchemaFile>${basedir}/src/codegen/resources/dom/OpenDocument-v1.2-cd05-rev02-schema.rng</odf12SchemaFile>
-									<odf11SchemaFile>${basedir}/src/codegen/resources/dom/OpenDocument-schema-v1.1.rng</odf11SchemaFile>
+									<odf12SchemaFile>${project.build.directory}/odf-schemas/OpenDocument-v1.2-cs01-schema.rng</odf12SchemaFile>
+									<odf11SchemaFile>${project.build.directory}/odf-schemas/OpenDocument-schema-v1.1.rng</odf11SchemaFile>
 									<configFile>${basedir}/src/codegen/resources/dom/config.xml</configFile>
 								</configuration>
 							</execution>

Modified: incubator/odf/trunk/odfdom/src/codegen/resources/dom/config.xml
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/src/codegen/resources/dom/config.xml?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/odfdom/src/codegen/resources/dom/config.xml (original)
+++ incubator/odf/trunk/odfdom/src/codegen/resources/dom/config.xml Fri Dec  2 06:37:13 2011
@@ -118,6 +118,7 @@
         <element name="style:drop-cap" family="text:text"/>
         <element name="text:linenumbering-configuration" family="text:text"/>
 
+		<!-- does not exist as element only as baseclass -->
         <element name="text:list-level-style" base="style"/>
         <element name="text:list-level-style-number" base="text:list-level-style"/>
         <element name="text:list-level-style-bullet" base="text:list-level-style"/>
@@ -131,8 +132,6 @@
 
         <element name="style:style" base="style"/>
         <element name="style:default-style" base="style"/>
-        <element name="style:footer-style" base="style"/>
-        <element name="style:header-style" base="style"/>
         <element name="style:page-layout" base="style"/>
         <element name="text:outline-level-style" base="style"/>
         <element name="text:list-style" base="style"/>

Modified: incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/copyright.txt
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/copyright.txt?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/copyright.txt (original)
+++ incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/copyright.txt Fri Dec  2
06:37:13 2011
@@ -1,25 +1,3 @@
-##################################################################
-## 
-## Licensed to the Apache Software Foundation (ASF) under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  The ASF licenses this file
-## to you under the Apache License, Version 2.0 (the
-## "License"); you may not use this file except in compliance
-## with the License.  You may obtain a copy of the License at
-## 
-##  http://www.apache.org/licenses/LICENSE-2.0
-## 
-## Unless required by applicable law or agreed to in writing,
-## software distributed under the License is distributed on an
-## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-## KIND, either express or implied.  See the License for the
-## specific language governing permissions and limitations
-## under the License.
-##
-##################################################################
-
-
 /************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER

Modified: incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/output-files.vm
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/output-files.vm?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/output-files.vm (original)
+++ incubator/odf/trunk/odfdom/src/codegen/resources/dom/template/output-files.vm Fri Dec
 2 06:37:13 2011
@@ -18,8 +18,6 @@
 ## under the License.
 ##
 ##################################################################
-
-
 <?xml version="1.0" encoding="UTF-8"?>
 ## Template to create the list of artefacts which are to be generated
 ##

Modified: incubator/odf/trunk/validator/pom.xml
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/pom.xml?rev=1209371&r1=1209370&r2=1209371&view=diff
==============================================================================
--- incubator/odf/trunk/validator/pom.xml (original)
+++ incubator/odf/trunk/validator/pom.xml Fri Dec  2 06:37:13 2011
@@ -61,6 +61,177 @@
 			</extension>
 		</extensions>
 		<plugins>
+		 	<plugin>
+      			<groupId>org.codehaus.mojo</groupId>
+      			<artifactId>wagon-maven-plugin</artifactId>
+      			<version>1.0-beta-3</version>
+      			<executions>
+      				<execution>
+          				<id>download-odf-schema-v1.2</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.2</url>
+            				<fromFile>cos01/OpenDocument-v1.2-cos01-schemas.zip</fromFile>
+            				<toDir>${project.build.directory}/schemas/odf1.2</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-manifest-schema-v1.1</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.1</url>
+            				<fromFile>OS/OpenDocument-manifest-schema-v1.1.rng</fromFile>
+            				<toDir>src/main/resources/schema/odf1.1</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-schema-v1.1</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.1</url>
+            				<fromFile>OS/OpenDocument-schema-v1.1.rng</fromFile>
+            				<toDir>src/main/resources/schema/odf1.1</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-strict-schema-v1.1</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://docs.oasis-open.org/office/v1.1</url>
+            				<fromFile>OS/OpenDocument-strict-schema-v1.1.rng</fromFile>
+            				<toDir>src/main/resources/schema/odf1.1</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-manifest-schema-v1.0</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://oasis-open.org/committees/download.php/12570</url>
+            				<fromFile>OpenDocument-manifest-schema-v1.0-os.rng</fromFile>
+            				<toDir>src/main/resources/schema/odf1.0</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-schema-v1.0</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.oasis-open.org/committees/download.php/12571</url>
+            				<fromFile>OpenDocument-schema-v1.0-os.rng</fromFile>
+            				<toDir>src/main/resources/schema/odf1.0</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-odf-strict-schema-v1.0</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.oasis-open.org/committees/download.php/12569</url>
+            				<fromFile>OpenDocument-strict-schema-v1.0-os.rng</fromFile>
+            				<toDir>src/main/resources/schema/odf1.0</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-mathml-schema-v3.0</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.w3.org/Math/RelaxNG</url>
+            				<fromFile>mathml3-relaxng.zip</fromFile>
+            				<toDir>${project.build.directory}/schemas</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-mathml-schema-v2.0</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.w3.org/Math/XMLSchema</url>
+            				<fromFile>mathml2.tgz</fromFile>
+            				<toDir>${project.build.directory}/schemas</toDir>
+          				</configuration>
+        			</execution>
+        			<execution>
+          				<id>download-mathml-schema-v1.01</id>
+          				<phase>generate-resources</phase>
+          				<goals>
+            				<goal>download-single</goal>
+          				</goals>
+          				<configuration>
+            				<url>dav:http://www.w3.org/pub/WWW/TR/REC-MathML</url>
+            				<fromFile>mmlents.zip</fromFile>
+            				<toDir>${project.build.directory}/schemas</toDir>
+          				</configuration>
+          			</execution>
+        		</executions>
+    		</plugin>
+    		<plugin>
+    			<groupId>org.apache.maven.plugins</groupId>
+    			<artifactId>maven-antrun-plugin</artifactId>
+    			<version>1.2</version>
+    			<executions>
+        			<execution>
+            			<id>unzip schema packages</id>
+            			<phase>generate-resources</phase>
+            			<configuration>
+                			<tasks>
+                    			<echo message="unzip odf 1.2 schemas" />
+                    			<unzip src="${project.build.directory}/schemas/odf1.2/OpenDocument-v1.2-cos01-schemas.zip"
dest="src/main/resources/schema/odf1.2/" />
+                    			<echo message="unzip mathml 3.0 schemas" />
+                    			<unzip src="${project.build.directory}/schemas/mathml3-relaxng.zip"
dest="src/main/resources/schema/" />
+                    			<move file="src/main/resources/schema/mathml3" tofile="src/main/resources/schema/mathml3.0"/>
                   			
+                    			<echo message="untar mathml 2.0 schemas" />
+                    			<untar src="${project.build.directory}/schemas/mathml2.tgz" dest="src/main/resources/schema/"/>
  
+                    			<move file="src/main/resources/schema/mathml2" tofile="src/main/resources/schema/mathml2.0"/>
                			
+                    			<echo message="unzip mathml 1.01 schemas" />
+                    			<unzip src="${project.build.directory}/schemas/mmlents.zip" dest="src/main/resources/schema/"
/>
+                    			<move file="src/main/resources/schema/mmlents" tofile="src/main/resources/schema/mathml1.01"/>
+                			</tasks>
+            			</configuration>
+            			<goals>
+                			<goal>run</goal>
+            			</goals>
+        			</execution>
+        			<execution>
+            			<id>clean schema files</id>
+            			<phase>clean</phase>
+            			<configuration>
+                			<tasks>
+                    			<echo message="remove schema files" />
+                    			<delete>
+ 									<fileset dir="src/main/resources/schema/" excludes="odf*.properties" defaultexcludes="false"/>
+								</delete>
+                			</tasks>
+            			</configuration>
+            			<goals>
+                			<goal>run</goal>
+            			</goals>
+        			</execution>
+    			</executions>
+			</plugin>  		
 			<plugin>
 				<artifactId>maven-compiler-plugin</artifactId>
 				<version>2.3.2</version>
@@ -152,10 +323,8 @@
                 <artifactId>apache-rat-plugin</artifactId>
                 <configuration>
                     <excludes>
-                        <exclude>src/main/resources/schema/**</exclude>
                         <exclude>src/main/resources/META-INF/services/org.iso_relax.verifier.VerifierFactoryLoader</exclude>
                         <exclude>src/test/resources/testInvalidPkg3.odt</exclude>
-                        <exclude>src/codegen/resources/pkg/*.rng</exclude>
                     </excludes>
                 </configuration>
             </plugin>



Mime
View raw message