Package com.mooltiverse.oss.nyx.gradle
Class CleanTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.mooltiverse.oss.nyx.gradle.CoreTask
com.mooltiverse.oss.nyx.gradle.CleanTask
- All Implemented Interfaces:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,Named
,ExtensionAware
,Task
,Configurable<Task>
The task running the Clean command by invoking the
Nyx.clean()
method on the backing Nyx instance.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The description of the task.static final String
The group the tasks belong to.static final String
The name of the task.Fields inherited from class com.mooltiverse.oss.nyx.gradle.CoreTask
NYX_INSTANCE_PROPERTY, NYX_STATE_PROPERTY
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
Methods inherited from class com.mooltiverse.oss.nyx.gradle.CoreTask
getExtension, hasSharedProperty, nyx, retrieveSharedProperty, state, storeSharedProperty
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, usesService
Methods inherited from class org.gradle.api.internal.AbstractTask
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Field Details
-
DESCRIPTION
The description of the task. This also appears in Gradle help.- See Also:
-
NAME
The name of the task. This is the name of the task to use inside Gradle scripts.- See Also:
-
GROUP
The group the tasks belong to.- See Also:
-
-
Constructor Details
-
CleanTask
Standard constructor.- Parameters:
extension
- the extension object. Cannot benull
. This is injected by Gradle because it's passed as an optional constructor argument by theNyxPlugin
definition method.
-
-
Method Details
-
clean
The actual business method for this task. This method runs theNyx.clean()
method on the shared singleton Nyx instance. Gradle knows this is the method to run upon task execution thanks to theTaskAction
annotation.- Throws:
NyxException
- in case of any exception when invoking the backing instance
-