Class CopyDefaultPdfMojo
java.lang.Object
network.ike.docs.plugin.CopyDefaultPdfMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
@Mojo(name="copy-default-pdf",
defaultPhase="verify")
public class CopyDefaultPdfMojo
extends Object
implements org.apache.maven.api.plugin.Mojo
Copy the selected renderer's PDF to the default
pdf/ directory.
After multiple PDF renderers produce output in their own subdirectories
(e.g., pdf-prince/, pdf-prawn/), this goal copies the
preferred renderer's PDF to pdf/ as the canonical output.
Replaces the cp exec-maven-plugin call with a cross-platform
Java goal. Gracefully skips if the source PDF does not exist (e.g., when
the renderer failed or was not enabled).
Usage:
<execution>
<id>copy-default-pdf</id>
<phase>verify</phase>
<goals><goal>copy-default-pdf</goal></goals>
</execution>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CopyDefaultPdfMojo
public CopyDefaultPdfMojo()Creates this goal instance.
-
-
Method Details
-
getLog
protected org.apache.maven.api.plugin.Log getLog()Access the Maven logger.- Returns:
- the logger
-
execute
public void execute() throws org.apache.maven.api.plugin.MojoException- Specified by:
executein interfaceorg.apache.maven.api.plugin.Mojo- Throws:
org.apache.maven.api.plugin.MojoException
-