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/21 01:00:32 UTC
svn commit: r290582 - in /maven/maven-1/plugins/trunk/pdf: plugin.jelly
xdocs/changes.xml xdocs/goals.xml
Author: ltheussl
Date: Tue Sep 20 16:00:30 2005
New Revision: 290582
URL: http://svn.apache.org/viewcvs?rev=290582&view=rev
Log:
New goal pdf:navigation-validate
Modified:
maven/maven-1/plugins/trunk/pdf/plugin.jelly
maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
maven/maven-1/plugins/trunk/pdf/xdocs/goals.xml
Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/plugin.jelly?rev=290582&r1=290581&r2=290582&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pdf/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/pdf/plugin.jelly Tue Sep 20 16:00:30 2005
@@ -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."/>
@@ -274,6 +280,33 @@
</classpath>
</java>
<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>
Modified: maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml?rev=290582&r1=290581&r2=290582&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml Tue Sep 20 16:00:30 2005
@@ -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>
Modified: maven/maven-1/plugins/trunk/pdf/xdocs/goals.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/xdocs/goals.xml?rev=290582&r1=290581&r2=290582&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pdf/xdocs/goals.xml (original)
+++ maven/maven-1/plugins/trunk/pdf/xdocs/goals.xml Tue Sep 20 16:00:30 2005
@@ -46,6 +46,10 @@
<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>
</tr>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org