@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.
|
getSiteDirectoryTmp
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${project}", readonly=true, required=true) protected MavenProject project
public void execute() throws MojoExecutionException
execute
in interface Mojo
MojoExecutionException
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
protected File getOutputDirectory()
getOutputDirectory
in class AbstractPdfMojo
protected File getWorkingDirectory()
getWorkingDirectory
in class AbstractPdfMojo
protected boolean isIncludeReports()
isIncludeReports
in class AbstractPdfMojo
protected void prepareTempSiteDirectory(File tmpSiteDir) throws IOException
generated-site
files if they already exist in the
site
dir.prepareTempSiteDirectory
in class AbstractPdfMojo
tmpSiteDir
- 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
MojoExecutionException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.