Interface EnhancedTask
- All Superinterfaces:
Comparable<Task>,ExtensionAware,Named,Task
The enhanced task contains a handful of helper methods to make working with the enhanced plugin and caches easier.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.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 -
Method Summary
Modifier and TypeMethodDescriptionThe default output directory to use for this task if it outputs a directory.default Provider<RegularFile> The default output file to use for this task if it outputs a file.default Provider<RegularFile> The default output file to use for this task if it outputs a file.default EnhancedPlugin<? super Project> default DirectoryPropertydefault DirectoryPropertyClass<? extends EnhancedPlugin<? super Project>> The enhanced plugin type for this task.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Method Details
-
pluginType
Class<? extends EnhancedPlugin<? super Project>> pluginType()The enhanced plugin type for this task.- Returns:
- The plugin type
-
getPlugin
-
globalCaches
- See Also:
-
localCaches
- See Also:
-
getDefaultOutputDirectory
-
getDefaultOutputFile
The default output file to use for this task if it outputs a file. Uses the.jarextension.- Returns:
- A provider for the file
-
getDefaultOutputFile
The default output file to use for this task if it outputs a file.- Parameters:
ext- The extension to use for the file- Returns:
- A provider for the file
-