@Mojo(name="clover") public class CloverReportMojo extends org.apache.maven.plugin.AbstractMojo implements org.apache.maven.reporting.MavenReport, CloverConfiguration
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...
| Constructor and Description |
|---|
CloverReportMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport()
Generate reports if a Clover module database or a Clover merged database exist.
|
void |
execute() |
void |
executeReport(Locale locale) |
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale) |
String |
getCategoryName() |
String |
getCloverDatabase() |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
String |
getOutputName() |
org.apache.maven.project.MavenProject |
getProject() |
List<org.apache.maven.project.MavenProject> |
getReactorProjects() |
File |
getReportOutputDirectory() |
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) |
getLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionpublic void generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenReportorg.apache.maven.reporting.MavenReportExceptionpublic void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportExceptionpublic String getOutputName()
getOutputName in interface org.apache.maven.reporting.MavenReportpublic String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportpublic org.apache.maven.project.MavenProject getProject()
getProject in interface CloverConfigurationpublic String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportpublic boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportpublic void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportprotected 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 CloverConfigurationCopyright © 2019 OpenClover.org. All rights reserved.