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 as
report
, but provides default values suitable for
integration-tests:
- bound to
report-integration
phase - different
dataFile
- Since:
- 0.6.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
File with execution data.private File
Output directory for the reports.Fields inherited from class org.jacoco.maven.AbstractReportMojo
excludes, footer, formats, includes, outputEncoding, project, skip, sourceEncoding, title
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
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
(package private) boolean
(package private) void
createReport
(IReportGroupVisitor visitor, ReportSupport support) (package private) File
(package private) void
loadExecutionData
(ReportSupport support) void
setReportOutputDirectory
(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 Details
-
outputDirectory
@Parameter(defaultValue="${project.reporting.outputDirectory}/jacoco-it") private 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
File with execution data.
-
-
Constructor Details
-
ReportITMojo
public ReportITMojo()
-
-
Method Details
-
canGenerateReportRegardingDataFiles
boolean canGenerateReportRegardingDataFiles()- Specified by:
canGenerateReportRegardingDataFiles
in classAbstractReportMojo
-
canGenerateReportRegardingClassesDirectory
boolean canGenerateReportRegardingClassesDirectory()- Specified by:
canGenerateReportRegardingClassesDirectory
in classAbstractReportMojo
-
loadExecutionData
- Specified by:
loadExecutionData
in classAbstractReportMojo
- Throws:
IOException
-
getOutputDirectory
File getOutputDirectory()- Specified by:
getOutputDirectory
in classAbstractReportMojo
-
createReport
- Specified by:
createReport
in classAbstractReportMojo
- Throws:
IOException
-
getReportOutputDirectory
-
setReportOutputDirectory
-
getOutputName
-
getName
-