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:
parent
b36cdec2f9
commit
0b4dee0c5d
@ -16,7 +16,13 @@
|
||||
* 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.">
|
||||
<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}"/>
|
||||
</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>
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<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="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>
|
||||
|
||||
@ -45,6 +45,10 @@
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pdf:navigation-validate</td>
|
||||
<td>Validates <code>${maven.pdf.navigationFile}</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven-pdf-plugin:register</td>
|
||||
<td>Register the pdf generation after the site goal.</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user