Class ReportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jacoco.maven.AbstractReportMojo
org.jacoco.maven.ReportMojo
- 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",
defaultPhase=VERIFY,
threadSafe=true)
public class ReportMojo
extends AbstractReportMojo
Creates a code coverage report for tests of a single project in multiple
formats (HTML, XML, and CSV).
- Since:
- 0.5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileFile with execution data.private FileOutput directory for the reports.Fields inherited from class 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 AbstractReportMojo
canGenerateReport, execute, generate, generate, getCategoryName, getDescription, getExcludes, getIncludes, isExternalReportMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
Field Details
-
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(property="jacoco.dataFile", defaultValue="${project.build.directory}/jacoco.exec") private File dataFileFile with execution data.
-
-
Constructor Details
-
ReportMojo
public ReportMojo()
-
-
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
-