Package org.jacoco.maven
Class ReportITMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- 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 AbstractReportMojo
Same asreport
, but provides default values suitable for integration-tests:- bound to
report-integration
phase - different
dataFile
- Since:
- 0.6.4
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
dataFile
File with execution data.private java.io.File
outputDirectory
Output directory for the reports.-
Fields inherited from class org.jacoco.maven.AbstractReportMojo
excludes, footer, formats, includes, outputEncoding, project, skip, sourceEncoding, title
-
-
Constructor Summary
Constructors Constructor Description ReportITMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
canGenerateReportRegardingClassesDirectory()
(package private) boolean
canGenerateReportRegardingDataFiles()
(package private) void
createReport(IReportGroupVisitor visitor, ReportSupport support)
java.lang.String
getName(java.util.Locale locale)
(package private) java.io.File
getOutputDirectory()
java.lang.String
getOutputName()
java.io.File
getReportOutputDirectory()
(package private) void
loadExecutionData(ReportSupport support)
void
setReportOutputDirectory(java.io.File reportOutputDirectory)
-
Methods inherited from class org.jacoco.maven.AbstractReportMojo
canGenerateReport, execute, generate, generate, getCategoryName, getDescription, getExcludes, getIncludes, isExternalReport
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(defaultValue="${project.reporting.outputDirectory}/jacoco-it") private java.io.File outputDirectory
Output 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 dataFile
File with execution data.
-
-
Method Detail
-
canGenerateReportRegardingDataFiles
boolean canGenerateReportRegardingDataFiles()
- Specified by:
canGenerateReportRegardingDataFiles
in classAbstractReportMojo
-
canGenerateReportRegardingClassesDirectory
boolean canGenerateReportRegardingClassesDirectory()
- Specified by:
canGenerateReportRegardingClassesDirectory
in classAbstractReportMojo
-
loadExecutionData
void loadExecutionData(ReportSupport support) throws java.io.IOException
- Specified by:
loadExecutionData
in classAbstractReportMojo
- Throws:
java.io.IOException
-
getOutputDirectory
java.io.File getOutputDirectory()
- Specified by:
getOutputDirectory
in classAbstractReportMojo
-
createReport
void createReport(IReportGroupVisitor visitor, ReportSupport support) throws java.io.IOException
- Specified by:
createReport
in classAbstractReportMojo
- Throws:
java.io.IOException
-
getReportOutputDirectory
public java.io.File getReportOutputDirectory()
-
setReportOutputDirectory
public void setReportOutputDirectory(java.io.File reportOutputDirectory)
-
getOutputName
public java.lang.String getOutputName()
-
getName
public java.lang.String getName(java.util.Locale locale)
-
-