|
||||||||||
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.reporting.AbstractMavenReport de.smartics.maven.exceptions.AbstractElementReport
public abstract class AbstractElementReport
Generates a report on elements found in the source tree.
Field Summary | |
---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory The factory to create dependent artifacts. |
protected File |
javadocDir Specifies the path to the directory the maven-javadoc-report generates the Javadoc HTML files. |
protected String |
locale The locale to use regardless of the report. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository Local Repository. |
protected String |
logLevel Specifies the log level used for this plugin. |
protected File |
outputDirectory Specifies the directory where the report will written to. |
protected List<org.apache.maven.artifact.Artifact> |
pluginArtifacts The plugin's dependencies to build the classpath for tools to be called. |
protected org.apache.maven.project.MavenProject |
project The Maven project. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver The resolver for resolving artifacts. |
protected org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer The Doxia site renderer. |
Fields inherited from interface org.apache.maven.reporting.MavenReport |
---|
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractElementReport() |
Method Summary | |
---|---|
boolean |
canGenerateReport() |
void |
execute() Runs the report generation. |
protected ResourceBundle |
getBundle(Locale locale) Returns the resource bundle for the given locale. |
protected abstract String |
getBundleName() Returns the name of the bundle to load to label report information. |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
protected String |
getOutputDirectory() |
org.apache.maven.project.MavenProject |
getProject() Returns the maven project. |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
protected void |
provideSink() Ensures that a writeable sink is provided. |
void |
setProject(org.apache.maven.project.MavenProject project) Sets the maven project. |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
closeReport, executeReport, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory |
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.reporting.MavenReport |
---|
getOutputName |
Field Detail |
---|
protected org.apache.maven.project.MavenProject project
protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.factory.ArtifactFactory factory
protected File javadocDir
maven-javadoc-report
generates the Javadoc HTML files. This allows the report generated by this plugin to reference Javadoc pages.
protected File outputDirectory
protected String logLevel
Allowed values are SEVERE
, WARNING
, INFO
and FINEST
.
protected String locale
Constructor Detail |
---|
public AbstractElementReport()
Method Detail |
---|
public String getDescription(Locale locale)
MavenReport.getDescription(java.util.Locale)
public String getName(Locale locale)
MavenReport.getName(java.util.Locale)
public org.apache.maven.project.MavenProject getProject()
getProject
in class
org.apache.maven.reporting.AbstractMavenReport
public void setProject(org.apache.maven.project.MavenProject project)
project
- the maven project.
protected String getOutputDirectory()
getOutputDirectory
in class
org.apache.maven.reporting.AbstractMavenReport
AbstractMavenReport.getOutputDirectory()
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer
in class
org.apache.maven.reporting.AbstractMavenReport
AbstractMavenReport.getSiteRenderer()
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface
org.apache.maven.plugin.Mojo
execute
in class
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugin.MojoExecutionException
- on any problem encountered.
protected void provideSink() throws org.apache.maven.plugin.MojoExecutionException
Stolen from the changes plugin.
org.apache.maven.plugin.MojoExecutionException
- if the sink cannot be created.
protected ResourceBundle getBundle(Locale locale)
locale
- the locale for which the resource bundle is requested.
protected abstract String getBundleName()
getBundle(Locale)
public boolean canGenerateReport()
canGenerateReport
in interface
org.apache.maven.reporting.MavenReport
canGenerateReport
in class
org.apache.maven.reporting.AbstractMavenReport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |