Package org.barfuin.gradle.jacocolog
Class LogCoverageTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.barfuin.gradle.jacocolog.LogCoverageTask
- All Implemented Interfaces:
Comparable<Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,Configurable<Task>
The Gradle task that logs the coverage information is added by the plugin for each JacocoReport task.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncounters(Closure<JacocoCounters> pClosure) Configures the counters to be logged by this task.counters(Action<? super JacocoCounters> pConfigureAction) Configures the counters to be logged by this task.voidvoidsetReportTask(JacocoReport pReportTask) In configuration phase, configure this task to work with the given report task.Methods inherited from class org.gradle.api.DefaultTask
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, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getLoggingManager, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
Constructor Details
-
LogCoverageTask
public LogCoverageTask()
-
-
Method Details
-
getLogAlways
-
getMaxDecimalDigits
-
getCounters
-
getReportTaskPath
-
getReportTaskDidWork
-
getXmlReportEnabled
-
getXmlReportPath
-
counters
Configures the counters to be logged by this task.- Parameters:
pClosure- a configuration closure for a JacocoCounters object- Returns:
- the configured object
-
counters
Configures the counters to be logged by this task.- Parameters:
pConfigureAction- a configuration action for a JacocoCounters object- Returns:
- the configured object
-
setReportTask
In configuration phase, configure this task to work with the given report task.- Parameters:
pReportTask- the report task whose output to log
-
logCoverage
public void logCoverage()
-