Author: ltheussl Date: Wed Sep 7 08:46:23 2005 New Revision: 279358 URL: http://svn.apache.org/viewcvs?rev=279358&view=rev Log: Remove unnecessary prereq
Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/plugin.jelly?rev=279358&r1=279357&r2=279358&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/pdf/plugin.jelly (original) +++ maven/maven-1/plugins/trunk/pdf/plugin.jelly Wed Sep 7 08:46:23 2005 @@ -17,12 +17,14 @@ */ --> <project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven" xmlns:doc="doc"> + <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."/> </goal> <goal name="maven-pdf-plugin:deregister" description="Deregister the pdf generation."> <doc:deregisterReport name="PDF"/> </goal> + <goal name="maven-pdf-plugin:report" description="Called by xdoc to execute the pdf goal."> <!-- using a postgoal so that maven generated reports are on place @@ -32,6 +34,7 @@ <attainGoal name="pdf"/> </postGoal> </goal> + <goal name="pdf:init" prereqs="xdoc:init"> <!-- xdoc plugin properties --> <maven:get var="maven.xdoc.src" plugin="maven-xdoc-plugin" property="maven.docs.src"/> @@ -110,7 +113,9 @@ <!-- Create working directory --> <mkdir dir="${internal_pdf_workingDir}"/> </goal> + <goal name="fo" prereqs="fo:fo" description="This simply pre-requisites the fo:fo goal. "/> + <goal name="fo:fo" prereqs="pdf:prepare" description="Generates an fo xml document from the ${maven.pdf.navigationFile} file supplied as part of the documentation."> <echo>Generating ${internal_pdf_workingDir}/project.fo from ${maven.pdf.navigationFilePath}/${maven.pdf.navigationFile} ...</echo> <available file="${maven.pdf.navigationFilePath}/${maven.pdf.navigationFile}" property="maven.fo.navigation.available"/> @@ -184,7 +189,9 @@ </classpath> </java> </goal> - <goal name="pdf" prereqs="fo:fo,pdf:prepare,pdf:pdf" description="This is the default goal of the plugin and simply pre-requisites the pdf:pdf goal. "/> + + <goal name="pdf" prereqs="fo:fo,pdf:pdf" description="This is the default goal of the plugin and simply pre-requisites the pdf:pdf goal. "/> + <goal name="pdf:prepare" prereqs="pdf:init" description="Stages all files needed to generate the PDF"> <!-- First, copy all of the generated xdocs --> <copy todir="${internal_pdf_workingDir}" force="true" overwrite="true"> @@ -214,6 +221,7 @@ </fileset> </copy> </goal> + <goal name="pdf:pdf" description="Generates a PDF document containing all project documentation. The PDF is generated from the .fo file generated in the fo:fo goal." prereqs="pdf:prepare"> <echo>Generating ${internal_pdf_workingDir}/${maven.pdf.pdfName} ...</echo> <echo>Config file: ${internal_pdf_workingDir}/userconfig.xml</echo> @@ -261,4 +269,5 @@ </java> <copy todir="${maven.xdoc.dest}" file="${internal_pdf_workingDir}/${maven.pdf.pdfName}"/> </goal> + </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]