Package org.jacoco.maven
Class ReportITMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.jacoco.maven.AbstractReportMojo
-
- org.jacoco.maven.ReportITMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
@Mojo(name="report-integration", defaultPhase=VERIFY, threadSafe=true) public class ReportITMojo extends AbstractReportMojoSame asreport, but provides default values suitable for integration-tests:- bound to
report-integrationphase - different
dataFile
- Since:
- 0.6.4
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FiledataFileFile with execution data.private java.io.FileoutputDirectoryOutput directory for the reports.-
Fields inherited from class org.jacoco.maven.AbstractReportMojo
excludes, footer, includes, outputEncoding, project, siteRenderer, skip, sourceEncoding, title
-
-
Constructor Summary
Constructors Constructor Description ReportITMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddFormatters(ReportSupport support, java.util.Locale locale)(package private) booleancanGenerateReportRegardingClassesDirectory()(package private) booleancanGenerateReportRegardingDataFiles()(package private) voidcreateReport(IReportGroupVisitor visitor, ReportSupport support)java.lang.StringgetName(java.util.Locale locale)protected java.lang.StringgetOutputDirectory()java.lang.StringgetOutputName()(package private) voidloadExecutionData(ReportSupport support)voidsetReportOutputDirectory(java.io.File reportOutputDirectory)-
Methods inherited from class org.jacoco.maven.AbstractReportMojo
canGenerateReport, execute, executeReport, getDescription, getExcludes, getIncludes, getProject, getSiteRenderer, isExternalReport
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(defaultValue="${project.reporting.outputDirectory}/jacoco-it") private java.io.File outputDirectoryOutput directory for the reports. Note that this parameter is only relevant if the goal is run from the command line or from the default build lifecycle. If the goal is run indirectly as part of a site generation, the output directory configured in the Maven Site Plugin is used instead.
-
dataFile
@Parameter(defaultValue="${project.build.directory}/jacoco-it.exec") private java.io.File dataFileFile with execution data.
-
-
Method Detail
-
canGenerateReportRegardingDataFiles
boolean canGenerateReportRegardingDataFiles()
- Specified by:
canGenerateReportRegardingDataFilesin classAbstractReportMojo
-
canGenerateReportRegardingClassesDirectory
boolean canGenerateReportRegardingClassesDirectory()
- Specified by:
canGenerateReportRegardingClassesDirectoryin classAbstractReportMojo
-
loadExecutionData
void loadExecutionData(ReportSupport support) throws java.io.IOException
- Specified by:
loadExecutionDatain classAbstractReportMojo- Throws:
java.io.IOException
-
addFormatters
void addFormatters(ReportSupport support, java.util.Locale locale) throws java.io.IOException
- Specified by:
addFormattersin classAbstractReportMojo- Throws:
java.io.IOException
-
createReport
void createReport(IReportGroupVisitor visitor, ReportSupport support) throws java.io.IOException
- Specified by:
createReportin classAbstractReportMojo- Throws:
java.io.IOException
-
getOutputDirectory
protected java.lang.String getOutputDirectory()
- Overrides:
getOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
setReportOutputDirectory
public void setReportOutputDirectory(java.io.File reportOutputDirectory)
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
setReportOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
getOutputName
public java.lang.String getOutputName()
-
getName
public java.lang.String getName(java.util.Locale locale)
-
-