You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by lt...@apache.org on 2005/09/29 01:18:15 UTC

svn commit: r292345 - in /maven/maven-1/plugins/trunk/faq: plugin.jelly project.xml src/plugin-resources/xsd/faq.xsd xdocs/changes.xml xdocs/goals.xml

Author: ltheussl
Date: Wed Sep 28 16:18:07 2005
New Revision: 292345

URL: http://svn.apache.org/viewcvs?rev=292345&view=rev
Log:
New goal faq:validate

Modified:
    maven/maven-1/plugins/trunk/faq/plugin.jelly
    maven/maven-1/plugins/trunk/faq/project.xml
    maven/maven-1/plugins/trunk/faq/src/plugin-resources/xsd/faq.xsd
    maven/maven-1/plugins/trunk/faq/xdocs/changes.xml
    maven/maven-1/plugins/trunk/faq/xdocs/goals.xml

Modified: maven/maven-1/plugins/trunk/faq/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/plugin.jelly?rev=292345&r1=292344&r2=292345&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/faq/plugin.jelly Wed Sep 28 16:18:07 2005
@@ -26,6 +26,7 @@
   xmlns:ant="jelly:ant"
   xmlns:define="jelly:define"
   xmlns:doc="doc"
+  xmlns:plugin="plugin"
   xmlns:assert="assert"
   xmlns:faq="faq">
 
@@ -142,5 +143,20 @@
   <goal name="faq" description="Generates FAQ xdoc files from FAQ XML documents">
       <faq:performTransformation srcdir="${maven.faq.src}" destdir="${maven.faq.dest}" />
   </goal>
+
+  <goal name="faq:validate"
+    description="Validates fml files"
+    prereqs="faq:init">
+
+    <j:if test="${fmlFiles.iterator().hasNext()}">
+      <j:forEach var="file" items="${fmlFiles.iterator()}">
+        <plugin:validate-xml
+            schema="${plugin.resources}/xsd/faq.xsd"
+            file="${file}"/>
+      </j:forEach>
+    </j:if>
+
+  </goal>
+
 
 </project>

Modified: maven/maven-1/plugins/trunk/faq/project.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/project.xml?rev=292345&r1=292344&r2=292345&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/project.xml (original)
+++ maven/maven-1/plugins/trunk/faq/project.xml Wed Sep 28 16:18:07 2005
@@ -94,6 +94,14 @@
       </roles>
       <timezone>+1</timezone>
     </developer>
+    <developer>
+      <name>Lukas Theussl</name>
+      <id>ltheussl</id>
+      <email>ltheussl@apache.org</email>
+      <roles>
+        <role>Developer</role>
+      </roles>
+    </developer>
   </developers>
   <dependencies>
     <dependency>

Modified: maven/maven-1/plugins/trunk/faq/src/plugin-resources/xsd/faq.xsd
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/src/plugin-resources/xsd/faq.xsd?rev=292345&r1=292344&r2=292345&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/src/plugin-resources/xsd/faq.xsd (original)
+++ maven/maven-1/plugins/trunk/faq/src/plugin-resources/xsd/faq.xsd Wed Sep 28 16:18:07 2005
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+ -->
+
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     elementFormDefault="qualified">
 
@@ -6,7 +24,7 @@
     <xsd:element name="question" type="anything"/>
     <xsd:element name="answer" type="anything"/>
 
-    <xsd:complexType name="anything">
+    <xsd:complexType name="anything" mixed="true">
         <xsd:sequence>
             <xsd:any namespace="##any" processContents="lax"
                 minOccurs="0" maxOccurs="unbounded" /> 

Modified: maven/maven-1/plugins/trunk/faq/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/xdocs/changes.xml?rev=292345&r1=292344&r2=292345&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/faq/xdocs/changes.xml Wed Sep 28 16:18:07 2005
@@ -23,6 +23,7 @@
   </properties>
   <body>
     <release version="1.6-SNAPSHOT" date="In SVN">
+      <action dev="ltheussl" type="add">New goal <code>faq:validate</code>.</action>
       <action dev="aheritier" type="update">It requires at least maven-plugin-plugin v1.7.</action>
     </release>
     <release version="1.5" date="2005-09-05">

Modified: maven/maven-1/plugins/trunk/faq/xdocs/goals.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/xdocs/goals.xml?rev=292345&r1=292344&r2=292345&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/xdocs/goals.xml (original)
+++ maven/maven-1/plugins/trunk/faq/xdocs/goals.xml Wed Sep 28 16:18:07 2005
@@ -37,6 +37,12 @@
       	    from an XML FAQ document.
       	  </td>
       	</tr>
+        <tr>
+          <td>faq:validate</td>
+          <td>
+            Validate all <code>.fml</code> files in <code>${maven.faq.src}</code>.
+          </td>
+        </tr>
       </table>
     </section>
   </body>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org