@Mojo(name="pdf", requiresDependencyResolution=TEST, threadSafe=true) public class PdfMojo extends AbstractPdfMojo implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected MavenProject |
project
The Maven Project Object.
|
| Constructor and Description |
|---|
PdfMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendGeneratedReports(org.apache.maven.doxia.document.DocumentModel model,
Locale locale)
Append generated reports to the toc only if
generateReports is enabled, for instance: |
void |
contextualize(org.codehaus.plexus.context.Context context) |
void |
execute() |
protected File |
getOutputDirectory() |
protected List<MavenReportExecution> |
getReports() |
protected File |
getWorkingDirectory() |
protected boolean |
isIncludeReports() |
protected void |
prepareTempSiteDirectory(File tmpSiteDir)
Copy all site and generated-site files in the tmpSiteDirectory.
|
getSiteDirectoryTmpgetLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${project}", readonly=true, required=true) protected MavenProject project
public void execute()
throws MojoExecutionException
execute in interface MojoMojoExecutionExceptionpublic void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionprotected File getOutputDirectory()
getOutputDirectory in class AbstractPdfMojoprotected File getWorkingDirectory()
getWorkingDirectory in class AbstractPdfMojoprotected boolean isIncludeReports()
isIncludeReports in class AbstractPdfMojoprotected void prepareTempSiteDirectory(File tmpSiteDir) throws IOException
generated-site files if they already exist in the
site dir.prepareTempSiteDirectory in class AbstractPdfMojotmpSiteDir - not nullIOException - if anyprotected void appendGeneratedReports(org.apache.maven.doxia.document.DocumentModel model, Locale locale)
generateReports is enabled, for instance:
<item name="Project Reports" ref="project-info"> <item name="Project License" ref="license" /> <item name="Project Team" ref="team-list" /> <item name="Continuous Integration" ref="integration" /> ... </item>
model - not nulllocale - not nullgenerateMavenReports(Locale)protected List<MavenReportExecution> getReports() throws MojoExecutionException
MojoExecutionExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.