MPCHANGES-25: Validate changes.xml

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@291220 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl committed 2005-09-23 23:19:37 +00:00
1 parent 500b43f541
commit f62392ae8f
5 files changed
+130 -2

No files matched your search

+19
View File
@@ -24,6 +24,7 @@
xmlns:define="jelly:define"
xmlns:util="jelly:util"
xmlns:c="changes:transform"
xmlns:plugin="plugin"
xmlns:doc="doc">
<goal name="maven-changes-plugin:register">
@@ -77,6 +78,24 @@
</goal>
<goal name="changes:validate"
description="Validates the changes.xml file">
<available
file="${maven.docs.src}/changes.xml"
property="changesFile.available"/>
<j:if test="${changesFile.available}">
<echo>schema=${plugin.resources}/xsd/changes.xsd</echo>
<echo>file=${maven.docs.src}/changes.xml</echo>
<plugin:validate-xml
schema="${plugin.resources}/xsd/changes.xsd"
file="${maven.docs.src}/changes.xml"/>
</j:if>
</goal>
<define:taglib uri="changes:transform">
<define:tag name="release-version">
<j:useBean var="transformer" class="org.apache.maven.changes.ReleaseVersion"/>