java.lang.Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Reporting<JacocoReportsContainer>
, Task
, Configurable<Task>
@CacheableTask public abstract class JacocoReport extends JacocoReportBase implements Reporting<JacocoReportsContainer>
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
JacocoReport() |
Modifier and Type | Method | Description |
---|---|---|
void |
generate() |
|
Property<java.lang.String> |
getReportProjectName() |
The reported project name.
|
JacocoReportsContainer |
getReports() |
Returns the reports to be generated by this task.
|
JacocoReportsContainer |
reports(Closure closure) |
Configures the reports to be generated by this task.
|
JacocoReportsContainer |
reports(Action<? super JacocoReportsContainer> configureAction) |
Allow configuration of the report container by closure.
|
additionalClassDirs, additionalClassDirs, additionalSourceDirs, additionalSourceDirs, executionData, executionData, executionData, getAdditionalClassDirs, getAdditionalSourceDirs, getAllClassDirs, getAllSourceDirs, getAntBuilder, getCallbackActionDecorator, getClassDirectories, getExecutionData, getInstantiator, getSourceDirectories, sourceSets
getJacocoClasspath, setJacocoClasspath
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
@Input public Property<java.lang.String> getReportProjectName()
public JacocoReportsContainer getReports()
getReports
in interface Reporting<JacocoReportsContainer>
public JacocoReportsContainer reports(Closure closure)
reports
in interface Reporting<JacocoReportsContainer>
closure
- The configurationpublic JacocoReportsContainer reports(Action<? super JacocoReportsContainer> configureAction)
Reporting
reports { html { enabled false } xml.destination "build/reports/myReport.xml" }
reports
in interface Reporting<JacocoReportsContainer>
configureAction
- The configurationpublic void generate()