|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.plugins.site.AbstractSiteMojo org.apache.maven.plugins.site.AbstractSiteRenderingMojo
public abstract class AbstractSiteRenderingMojo
Base class for site rendering mojos.
Field Summary | |
---|---|
protected File |
generatedSiteDirectory
Directory containing generated documentation. |
protected MavenSession |
mavenSession
The current Maven session. |
protected List<MavenReport> |
reports
Reports (Maven 2). |
protected Renderer |
siteRenderer
Site renderer. |
Fields inherited from class org.apache.maven.plugins.site.AbstractSiteMojo |
---|
i18n, locales, localRepository, project, reactorProjects, siteDirectory, siteTool |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractSiteRenderingMojo()
|
Method Summary | |
---|---|
protected Map<String,List<MavenReport>> |
categoriseReports(Collection<MavenReport> reports)
Go through the collection of reports and put each report into a list for the appropriate category. |
void |
contextualize(org.codehaus.plexus.context.Context context)
|
protected SiteRenderingContext |
createSiteRenderingContext(Locale locale)
|
protected List<MavenReportExecution> |
getReports()
|
protected Map<String,DocumentRenderer> |
locateDocuments(SiteRenderingContext context,
List<MavenReportExecution> reports,
Locale locale)
|
protected Map<String,MavenReport> |
locateReports(List<MavenReportExecution> reports,
Map<String,DocumentRenderer> documents,
Locale locale)
Go through the list of reports and process each one like this: Add the report to a map of reports keyed by filename having the report itself as value If the report is not yet in the map of documents, add it together with a suitable renderer |
protected void |
populateReportItems(DecorationModel decorationModel,
Locale locale,
Map<String,MavenReport> reportsByOutputName)
|
Methods inherited from class org.apache.maven.plugins.site.AbstractSiteMojo |
---|
getInputEncoding, getMavenVersion, getOutputEncoding, isMaven3OrMore |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
@Component protected Renderer siteRenderer
@Parameter(defaultValue="${reports}", required=true, readonly=true) protected List<MavenReport> reports
@Parameter(alias="workingDirectory", defaultValue="${project.build.directory}/generated-site") protected File generatedSiteDirectory
@Component protected MavenSession mavenSession
Constructor Detail |
---|
public AbstractSiteRenderingMojo()
Method Detail |
---|
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 List<MavenReportExecution> getReports() throws MojoExecutionException
MojoExecutionException
protected SiteRenderingContext createSiteRenderingContext(Locale locale) throws MojoExecutionException, IOException, MojoFailureException
MojoExecutionException
IOException
MojoFailureException
protected Map<String,MavenReport> locateReports(List<MavenReportExecution> reports, Map<String,DocumentRenderer> documents, Locale locale)
reports
- A List of MavenReportsdocuments
- A Map of documents, keyed by filenamelocale
- the Locale the reports are processed for.
protected Map<String,List<MavenReport>> categoriseReports(Collection<MavenReport> reports)
reports
- A Collection of MavenReports
protected Map<String,DocumentRenderer> locateDocuments(SiteRenderingContext context, List<MavenReportExecution> reports, Locale locale) throws IOException, RendererException
IOException
RendererException
protected void populateReportItems(DecorationModel decorationModel, Locale locale, Map<String,MavenReport> reportsByOutputName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |