Copy the pdf icon when the pdf:init goal is called. Otherwise the icon is missing if the report isn't used.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@390241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f96417c014
commit
5f6e7a2d60
@ -25,14 +25,10 @@
|
|||||||
xmlns:plugin="plugin">
|
xmlns:plugin="plugin">
|
||||||
|
|
||||||
<goal name="maven-pdf-plugin:register" description="Register the pdf generation during site goal." prereqs="pdf:init">
|
<goal name="maven-pdf-plugin:register" description="Register the pdf generation during site goal." prereqs="pdf:init">
|
||||||
<copy todir="${maven.docs.dest}/images/" overwrite="yes" filtering="no">
|
|
||||||
<fileset dir="${plugin.resources}/images/">
|
|
||||||
<include name="**/*"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
<!-- We register it but we need to specify the extension -->
|
<!-- We register it but we need to specify the extension -->
|
||||||
<doc:registerReport name="PDF Documentation" pluginName="maven-pdf-plugin" target="_blank" description="Documentation in PDF format." link="${maven.pdf.pdfName.substring(0,maven.pdf.pdfName.length()-4)}" fileSuffix=".pdf" image="/images/pdf.gif"/>
|
<doc:registerReport name="PDF Documentation" pluginName="maven-pdf-plugin" target="_blank" description="Documentation in PDF format." link="${maven.pdf.pdfName.substring(0,maven.pdf.pdfName.length()-4)}" fileSuffix=".pdf" image="/images/pdf.gif"/>
|
||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
<goal name="maven-pdf-plugin:deregister" description="Deregister the pdf generation.">
|
<goal name="maven-pdf-plugin:deregister" description="Deregister the pdf generation.">
|
||||||
<doc:deregisterReport name="PDF"/>
|
<doc:deregisterReport name="PDF"/>
|
||||||
</goal>
|
</goal>
|
||||||
@ -125,6 +121,11 @@ plugin.currentVersion = [${plugin.currentVersion}]
|
|||||||
</j:if>
|
</j:if>
|
||||||
<!-- Create working directory -->
|
<!-- Create working directory -->
|
||||||
<mkdir dir="${internal_pdf_workingDir}"/>
|
<mkdir dir="${internal_pdf_workingDir}"/>
|
||||||
|
<copy todir="${maven.docs.dest}/images/" overwrite="yes" filtering="no">
|
||||||
|
<fileset dir="${plugin.resources}/images/">
|
||||||
|
<include name="**/*"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
<goal name="fo" prereqs="fo:fo" description="This simply pre-requisites the fo:fo goal. "/>
|
<goal name="fo" prereqs="fo:fo" description="This simply pre-requisites the fo:fo goal. "/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user