org.apache.maven.plugins.site
Class AbstractSiteRenderingMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.site.AbstractSiteMojo
org.apache.maven.plugins.site.AbstractSiteRenderingMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- EffectiveSiteMojo, SiteMojo, SiteRunMojo
public abstract class AbstractSiteRenderingMojo
- extends AbstractSiteMojo
Base class for site rendering mojos.
- Version:
- $Id: AbstractSiteRenderingMojo.html 816561 2012-05-08 12:02:24Z hboutemy $
- Author:
- Brett Porter
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected Map<String,List<org.apache.maven.reporting.MavenReport>> |
categoriseReports(Collection<org.apache.maven.reporting.MavenReport> reports)
Go through the collection of reports and put each report into a list for the appropriate category. |
protected org.apache.maven.doxia.siterenderer.SiteRenderingContext |
createSiteRenderingContext(Locale locale)
|
protected List<org.apache.maven.reporting.MavenReport> |
filterReports(List<org.apache.maven.reporting.MavenReport> reports)
|
protected Map<String,org.apache.maven.doxia.siterenderer.DocumentRenderer> |
locateDocuments(org.apache.maven.doxia.siterenderer.SiteRenderingContext context,
List<org.apache.maven.reporting.MavenReport> reports,
Locale locale)
|
protected Map<String,org.apache.maven.reporting.MavenReport> |
locateReports(List<org.apache.maven.reporting.MavenReport> reports,
Map<String,org.apache.maven.doxia.siterenderer.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(org.apache.maven.doxia.site.decoration.DecorationModel decorationModel,
Locale locale,
Map<String,org.apache.maven.reporting.MavenReport> reportsByOutputName)
|
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 |
siteRenderer
protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
- Site renderer.
- Is a Plexus component defined by:
reports
protected List<org.apache.maven.reporting.MavenReport> reports
- Is defined by:
- expression:
- ${reports}
- Is readonly.
- Is required.
generatedSiteDirectory
protected File generatedSiteDirectory
- Directory containing generated documentation.
This is used to pick up other source docs that might have been generated at build time.
- Is defined by:
- default-value:
- ${project.build.directory}/generated-site
- alias:
- workingDirectory
AbstractSiteRenderingMojo
public AbstractSiteRenderingMojo()
filterReports
protected List<org.apache.maven.reporting.MavenReport> filterReports(List<org.apache.maven.reporting.MavenReport> reports)
createSiteRenderingContext
protected org.apache.maven.doxia.siterenderer.SiteRenderingContext createSiteRenderingContext(Locale locale)
throws org.apache.maven.plugin.MojoExecutionException,
IOException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.plugin.MojoFailureException
locateReports
protected Map<String,org.apache.maven.reporting.MavenReport> locateReports(List<org.apache.maven.reporting.MavenReport> reports,
Map<String,org.apache.maven.doxia.siterenderer.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
- Parameters:
reports
- A List of MavenReportsdocuments
- A Map of documents, keyed by filenamelocale
- the Locale the reports are processed for.
- Returns:
- A map with all reports keyed by filename having the report itself as value.
The map will be used to populate a menu.
categoriseReports
protected Map<String,List<org.apache.maven.reporting.MavenReport>> categoriseReports(Collection<org.apache.maven.reporting.MavenReport> reports)
- Go through the collection of reports and put each report into a list for the appropriate category. The list is
put into a map keyed by the name of the category.
- Parameters:
reports
- A Collection of MavenReports
- Returns:
- A map keyed category having the report itself as value
locateDocuments
protected Map<String,org.apache.maven.doxia.siterenderer.DocumentRenderer> locateDocuments(org.apache.maven.doxia.siterenderer.SiteRenderingContext context,
List<org.apache.maven.reporting.MavenReport> reports,
Locale locale)
throws IOException,
org.apache.maven.doxia.siterenderer.RendererException
- Throws:
IOException
org.apache.maven.doxia.siterenderer.RendererException
populateReportItems
protected void populateReportItems(org.apache.maven.doxia.site.decoration.DecorationModel decorationModel,
Locale locale,
Map<String,org.apache.maven.reporting.MavenReport> reportsByOutputName)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.