|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
com.atlassian.maven.plugin.clover.CloverReportMojo
public class CloverReportMojo
Generate a Clover report from existing Clover databases. The generated report
is an external report generated by Clover itself. If the project generating the report is a top level project and
if the aggregate configuration element is set to true then an aggregated report will also be created.
Note: This report mojo should be an @aggregator and the clover:aggregate mojo shouldn't exist. This
is a limitation of the site plugin which doesn't support @aggregator reports...
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
The component used for creating artifact instances. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
The component that is used to resolve additional artifacts required. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository. |
protected List |
repositories
Remote repositories used for the project. |
protected boolean |
singleCloverDatabase
If true, then a single database will be saved for the entire project, in the target directory of the execution root. |
| 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 | |
|---|---|
CloverReportMojo()
|
|
| Method Summary | |
|---|---|
boolean |
canGenerateReport()
Generate reports if a Clover module database or a Clover merged database exist. |
void |
executeReport(Locale locale)
|
String |
getCloverDatabase()
|
String |
getDescription(Locale locale)
|
String |
getName(Locale locale)
|
protected String |
getOutputDirectory()
|
String |
getOutputName()
|
org.apache.maven.project.MavenProject |
getProject()
|
List<org.apache.maven.project.MavenProject> |
getReactorProjects()
|
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer()
|
boolean |
isExternalReport()
Always return true as we're using the report generated by Clover rather than creating our own report. |
boolean |
isSingleCloverDatabase()
|
String |
resolveCloverDatabase()
|
protected File |
resolveCloverDescriptor()
The logic here is taken from AbstractSiteRenderingMojo#resolveSiteDescriptor in the maven-site-plugin. |
void |
setReportOutputDirectory(File reportOutputDirectory)
|
| Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
|---|
closeReport, execute, generate, getCategoryName, getReportOutputDirectory, getSink |
| 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 com.atlassian.maven.plugin.clover.internal.CloverConfiguration |
|---|
getLog |
| Field Detail |
|---|
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected List repositories
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected boolean singleCloverDatabase
| Constructor Detail |
|---|
public CloverReportMojo()
| Method Detail |
|---|
public void executeReport(Locale locale)
throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionAbstractMavenReport.executeReport(java.util.Locale)public String getOutputName()
getOutputName in interface org.apache.maven.reporting.MavenReportMavenReport.getOutputName()public String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportMavenReport.getDescription(java.util.Locale)protected String getOutputDirectory()
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportAbstractMavenReport.getOutputDirectory()protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer in class org.apache.maven.reporting.AbstractMavenReportAbstractMavenReport.getSiteRenderer()public org.apache.maven.project.MavenProject getProject()
getProject in interface CloverConfigurationgetProject in class org.apache.maven.reporting.AbstractMavenReportAbstractMavenReport.getProject()public String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportMavenReport.getName(java.util.Locale)public boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportisExternalReport in class org.apache.maven.reporting.AbstractMavenReportpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportcanGenerateReport in class org.apache.maven.reporting.AbstractMavenReportAbstractMavenReport.canGenerateReport()public void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportsetReportOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportAbstractMavenReport.setReportOutputDirectory(java.io.File)
protected File resolveCloverDescriptor()
throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException - if at least the default file can't be resolvedpublic String getCloverDatabase()
getCloverDatabase in interface CloverConfigurationpublic String resolveCloverDatabase()
resolveCloverDatabase in interface CloverConfigurationpublic List<org.apache.maven.project.MavenProject> getReactorProjects()
getReactorProjects in interface CloverConfigurationpublic boolean isSingleCloverDatabase()
isSingleCloverDatabase in interface CloverConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||