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 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, 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) booleancanGenerateReportRegardingClassesDirectory()(package private) booleancanGenerateReportRegardingDataFiles()(package private) voidcreateReport(IReportGroupVisitor visitor, ReportSupport support)java.lang.StringgetName(java.util.Locale locale)(package private) java.io.FilegetOutputDirectory()java.lang.StringgetOutputName()java.io.FilegetReportOutputDirectory()(package private) voidloadExecutionData(ReportSupport support)voidsetReportOutputDirectory(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 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
-
getOutputDirectory
java.io.File getOutputDirectory()
- Specified by:
getOutputDirectoryin classAbstractReportMojo
-
createReport
void createReport(IReportGroupVisitor visitor, ReportSupport support) throws java.io.IOException
- Specified by:
createReportin 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)
-
-