New goal pdf:navigation-validate

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@290582 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2005-09-20 23:00:30 +00:00
parent b36cdec2f9
commit 0b4dee0c5d
3 changed files with 39 additions and 1 deletions

View File

@ -16,7 +16,13 @@
* limitations under the License. * limitations under the License.
*/ */
--> -->
<project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven" xmlns:doc="doc"> <project
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:ant="jelly:ant"
xmlns:maven="jelly:maven"
xmlns:doc="doc"
xmlns:plugin="plugin">
<goal name="maven-pdf-plugin:register" description="Register the pdf generation during site goal."> <goal name="maven-pdf-plugin:register" description="Register the pdf generation during site goal.">
<doc:registerReport name="PDF" pluginName="maven-pdf-plugin" target="_blank" description="Documentation in PDF format."/> <doc:registerReport name="PDF" pluginName="maven-pdf-plugin" target="_blank" description="Documentation in PDF format."/>
@ -276,4 +282,31 @@ plugin.currentVersion = [${plugin.currentVersion}]
<copy todir="${maven.xdoc.dest}" file="${internal_pdf_workingDir}/${maven.pdf.pdfName}"/> <copy todir="${maven.xdoc.dest}" file="${internal_pdf_workingDir}/${maven.pdf.pdfName}"/>
</goal> </goal>
<goal name="pdf:navigation-validate"
description="Validates the pdf navigation file"
prereqs="pdf:init">
<available
file="${maven.pdf.navigationFilePath}/${maven.pdf.navigationFile}"
property="navigationFile.available"/>
<j:if test="${navigationFile.available}">
<maven:get plugin="maven-xdoc-plugin" property="plugin" var="installedPlugin" />
<maven:get plugin="maven-xdoc-plugin" property="plugin.resources" var="plugin.resources" />
<!-- Remove SNAPSHOT -->
<j:choose>
<j:when test="${installedPlugin.currentVersion.endsWith('-SNAPSHOT')}">
<j:set var="currentRelease" value="${installedPlugin.currentVersion.substring(0,installedPlugin.currentVersion.length()-9)}"/>
</j:when>
<j:otherwise>
<j:set var="currentRelease" value="${installedPlugin.currentVersion}"/>
</j:otherwise>
</j:choose>
<plugin:validate-xml
schema="${plugin.resources}/xsd/maven-navigation-${currentRelease}.xsd"
file="${maven.pdf.navigationFilePath}/${maven.pdf.navigationFile}"/>
</j:if>
</goal>
</project> </project>

View File

@ -25,6 +25,7 @@
</properties> </properties>
<body> <body>
<release version="2.5-SNAPSHOT" date="in SVN"> <release version="2.5-SNAPSHOT" date="in SVN">
<action dev="ltheussl" type="add" issue="MPPDF-48">New goal <code>pdf:navigation-validate</code> to validate the pdf navigation file.</action>
<action dev="ltheussl" type="fix" issue="MPPDF-50">Fix <code>maven.pdf.cover.projectCompany</code>.</action> <action dev="ltheussl" type="fix" issue="MPPDF-50">Fix <code>maven.pdf.cover.projectCompany</code>.</action>
<action dev="ltheussl" type="add">Make cover header- and footer-height configurable.</action> <action dev="ltheussl" type="add">Make cover header- and footer-height configurable.</action>
<action dev="ltheussl" type="fix" issue="MPPDF-40">Use optional id tag for sub/section anchors to avoid problems with identical names.</action> <action dev="ltheussl" type="fix" issue="MPPDF-40">Use optional id tag for sub/section anchors to avoid problems with identical names.</action>

View File

@ -45,6 +45,10 @@
<td>pdf:pdf</td> <td>pdf:pdf</td>
<td>Generates a PDF document containing all project documentation. The PDF is generated from the .fo file generated in the <code>fo:fo</code> goal.</td> <td>Generates a PDF document containing all project documentation. The PDF is generated from the .fo file generated in the <code>fo:fo</code> goal.</td>
</tr> </tr>
<tr>
<td>pdf:navigation-validate</td>
<td>Validates <code>${maven.pdf.navigationFile}</code>.</td>
</tr>
<tr> <tr>
<td>maven-pdf-plugin:register</td> <td>maven-pdf-plugin:register</td>
<td>Register the pdf generation after the site goal.</td> <td>Register the pdf generation after the site goal.</td>