New goal faq:validate
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@292345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
16a89b9da7
commit
be3e9f91bd
@ -26,6 +26,7 @@
|
|||||||
xmlns:ant="jelly:ant"
|
xmlns:ant="jelly:ant"
|
||||||
xmlns:define="jelly:define"
|
xmlns:define="jelly:define"
|
||||||
xmlns:doc="doc"
|
xmlns:doc="doc"
|
||||||
|
xmlns:plugin="plugin"
|
||||||
xmlns:assert="assert"
|
xmlns:assert="assert"
|
||||||
xmlns:faq="faq">
|
xmlns:faq="faq">
|
||||||
|
|
||||||
@ -143,4 +144,19 @@
|
|||||||
<faq:performTransformation srcdir="${maven.faq.src}" destdir="${maven.faq.dest}" />
|
<faq:performTransformation srcdir="${maven.faq.src}" destdir="${maven.faq.dest}" />
|
||||||
</goal>
|
</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>
|
</project>
|
||||||
|
|||||||
@ -94,6 +94,14 @@
|
|||||||
</roles>
|
</roles>
|
||||||
<timezone>+1</timezone>
|
<timezone>+1</timezone>
|
||||||
</developer>
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<name>Lukas Theussl</name>
|
||||||
|
<id>ltheussl</id>
|
||||||
|
<email>ltheussl@apache.org</email>
|
||||||
|
<roles>
|
||||||
|
<role>Developer</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@ -1,4 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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"
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||||
elementFormDefault="qualified">
|
elementFormDefault="qualified">
|
||||||
|
|
||||||
@ -6,7 +24,7 @@
|
|||||||
<xsd:element name="question" type="anything"/>
|
<xsd:element name="question" type="anything"/>
|
||||||
<xsd:element name="answer" type="anything"/>
|
<xsd:element name="answer" type="anything"/>
|
||||||
|
|
||||||
<xsd:complexType name="anything">
|
<xsd:complexType name="anything" mixed="true">
|
||||||
<xsd:sequence>
|
<xsd:sequence>
|
||||||
<xsd:any namespace="##any" processContents="lax"
|
<xsd:any namespace="##any" processContents="lax"
|
||||||
minOccurs="0" maxOccurs="unbounded" />
|
minOccurs="0" maxOccurs="unbounded" />
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.6-SNAPSHOT" date="In SVN">
|
<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>
|
<action dev="aheritier" type="update">It requires at least maven-plugin-plugin v1.7.</action>
|
||||||
</release>
|
</release>
|
||||||
<release version="1.5" date="2005-09-05">
|
<release version="1.5" date="2005-09-05">
|
||||||
|
|||||||
@ -37,6 +37,12 @@
|
|||||||
from an XML FAQ document.
|
from an XML FAQ document.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>faq:validate</td>
|
||||||
|
<td>
|
||||||
|
Validate all <code>.fml</code> files in <code>${maven.faq.src}</code>.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user