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-integrationphase - different
dataFile
- Since:
- 0.6.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileFile with execution data.private FileOutput directory for the reports.Fields inherited from class org.jacoco.maven.AbstractReportMojo
excludes, footer, formats, includes, outputEncoding, project, skip, sourceEncoding, titleFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields 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) voidcreateReport(IReportGroupVisitor visitor, ReportSupport support) (package private) File(package private) voidloadExecutionData(ReportSupport support) voidsetReportOutputDirectory(File reportOutputDirectory) Methods inherited from class org.jacoco.maven.AbstractReportMojo
canGenerateReport, execute, generate, generate, getCategoryName, getDescription, getExcludes, getIncludes, isExternalReportMethods 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:
canGenerateReportRegardingDataFilesin classAbstractReportMojo
-
canGenerateReportRegardingClassesDirectory
boolean canGenerateReportRegardingClassesDirectory()- Specified by:
canGenerateReportRegardingClassesDirectoryin classAbstractReportMojo
-
loadExecutionData
- Specified by:
loadExecutionDatain classAbstractReportMojo- Throws:
IOException
-
getOutputDirectory
File getOutputDirectory()- Specified by:
getOutputDirectoryin classAbstractReportMojo
-
createReport
- Specified by:
createReportin classAbstractReportMojo- Throws:
IOException
-
getReportOutputDirectory
-
setReportOutputDirectory
-
getOutputName
-
getName
-