Klasse DefaultTask
- Alle implementierten Schnittstellen:
Comparable<Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,Configurable<Task>
- Bekannte direkte Unterklassen:
AbstractConfigurationReportTask,AbstractLinkTask,AbstractNativeCompileTask,AbstractPublishToMaven,ArtifactTransformsReportTask,Assemble,BuildEnvironmentReportTask,ComponentReport,org.gradle.api.internal.ConventionTask,CreateStaticLibrary,DependencyInsightReportTask,DependentComponentsReport,ExtractSymbols,GenerateBuildDashboard,GenerateCUnitLauncher,GenerateIvyDescriptor,GenerateMavenPom,GenerateModuleMetadata,GeneratePluginDescriptors,GenerateSwiftPackageManagerManifest,InitBuild,InstallExecutable,InstallXCTestBundle,JacocoBase,ModelReport,PluginUnderTestMetadata,PrefixHeaderFileGenerateTask,PublishToIvyRepository,Sign,StripSymbols,SwiftCompile,TestReport,UnexportMainSymbol,UpdateDaemonJvm,ValidatePlugins,WindowsResourceCompile,Wrapper,WriteProperties
DefaultTask is the standard Task implementation. You can extend this to implement your own task types.-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Task
Task.Namer -
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintApplies the statements of the closure against this task object.Adds the given dependencies to this task.Adds the given closure to the beginning of this task's action list.Adds the givenActionto the beginning of this task's action list.Adds the givenActionto the beginning of this task's action list.Adds the given closure to the end of this task's action list.Adds the givenActionto the end of this task's action list.Adds the givenActionto the end of this task's action list.finalizedBy(Object... paths) Adds the given finalizer tasks for this task.Returns the sequence ofActionobjects which will be executed by this task, in the order of execution.getAnt()Returns theAntBuilderfor this task.Returns the dependencies of this task.Returns the description of this task.Returns the destroyables of this task.booleanChecks if the task actually did any work.booleanReturns if this task is enabled or not.The container of extensions.Returns tasks that finalize this task.getGroup()Returns the task group which this task belongs to.org.gradle.api.internal.TaskInputsInternalReturns the inputs of this task.Returns the local state of this task.Returns the logger for this task.Returns theLoggingManagerwhich can be used to receive logging and to control the standard output/error capture for this task.Returns tasks that this task must run after.getName()Returns the name of this task.org.gradle.api.internal.TaskOutputsInternalReturns the outputs of this task.getPath()Returns the path of the task, which is a fully qualified name for the task.Returns theProjectwhich this task belongs to.Returns tasks that this task should run after.org.gradle.api.internal.tasks.TaskStateInternalgetState()Returns the execution state of this task.org.gradle.api.internal.tasks.TaskDependencyInternalReturns aTaskDependencywhich contains all the tasks that this task depends on.Returns a directory which this task can use to write temporary files to.The timeout of this task.booleanhasProperty(String propertyName) Determines if this task has the given property.mustRunAfter(Object... paths) Specifies that this task must run after all of the supplied tasks.voidExecute the task only if the given closure returns true.voidExecute the task only if the given spec is satisfied.voidExecute the task only if the given spec is satisfied.Returns the value of the given property of this task.voidsetActions(List<Action<? super Task>> replacements) Sets the sequence ofActionobjects which will be executed by this task.voidsetDependsOn(Iterable<?> dependsOn) Sets the dependencies of this task.voidsetDescription(String description) Sets a description for this task.voidsetDidWork(boolean didWork) Sets whether the task actually did any work.voidsetEnabled(boolean enabled) Set the enabled state of a task.voidsetFinalizedBy(Iterable<?> finalizedByTasks) Specifies the set of finalizer tasks for this task.voidSets the task group which this task belongs to.voidsetMustRunAfter(Iterable<?> mustRunAfterTasks) Specifies the set of tasks that this task must run after.voidExecute the task only if the given closure returns true.voidExecute the task only if the given spec is satisfied.voidExecute the task only if the given spec is satisfied.voidsetProperty(String name, Object value) Sets a property of this task.voidsetShouldRunAfter(Iterable<?> shouldRunAfterTasks) Specifies the set of tasks that this task should run after.shouldRunAfter(Object... paths) Specifies that this task should run after all of the supplied tasks.voidusesService(Provider<? extends BuildService<?>> service) Registers aBuildServicethat is used by this task soits constraint on parallel executioncan be honored.Von Klasse geerbte Methoden 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, setImpliesSubProjectsVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Konstruktordetails
-
DefaultTask
public DefaultTask()
-
-
Methodendetails
-
getAnt
Beschreibung aus Schnittstelle kopiert:TaskReturns the
AntBuilderfor this task. You can use this in your build file to execute ant tasks. -
getProject
Beschreibung aus Schnittstelle kopiert:TaskReturns the
Projectwhich this task belongs to.Calling this method from a task action is not supported when configuration caching is enabled.
- Angegeben von:
getProjectin SchnittstelleTask- Setzt außer Kraft:
getProjectin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The project this task belongs to. Never returns null.
-
getName
Beschreibung aus Schnittstelle kopiert:TaskReturns the name of this task. The name uniquely identifies the task within its
Project. -
getActions
Beschreibung aus Schnittstelle kopiert:TaskReturns the sequence of
Actionobjects which will be executed by this task, in the order of execution.- Angegeben von:
getActionsin SchnittstelleTask- Setzt außer Kraft:
getActionsin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The task actions in the order they are executed. Returns an empty list if this task has no actions.
-
setActions
Beschreibung aus Schnittstelle kopiert:TaskSets the sequence of
Actionobjects which will be executed by this task.- Angegeben von:
setActionsin SchnittstelleTask- Setzt außer Kraft:
setActionsin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
replacements- The actions.
-
getDependsOn
Beschreibung aus Schnittstelle kopiert:TaskReturns the dependencies of this task.
- Angegeben von:
getDependsOnin SchnittstelleTask- Setzt außer Kraft:
getDependsOnin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The dependencies of this task. Returns an empty set if this task has no dependencies.
-
setDependsOn
Beschreibung aus Schnittstelle kopiert:TaskSets the dependencies of this task. See here for a description of the types of objects which can be used as task dependencies.
- Angegeben von:
setDependsOnin SchnittstelleTask- Setzt außer Kraft:
setDependsOnin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
dependsOn- The set of task paths.
-
onlyIf
Beschreibung aus Schnittstelle kopiert:TaskExecute the task only if the given spec is satisfied. The spec will be evaluated at task execution time, not during configuration. If the Spec is not satisfied, the task will be skipped.
You may add multiple such predicates. The task is skipped if any of the predicates return false.
Typical usage (from Java):
myTask.onlyIf(new Spec<Task>() { boolean isSatisfiedBy(Task task) { return isProductionEnvironment(); } }); -
onlyIf
Beschreibung aus Schnittstelle kopiert:TaskExecute the task only if the given spec is satisfied. The spec will be evaluated at task execution time, not during configuration. If the Spec is not satisfied, the task will be skipped.
You may add multiple such predicates. The task is skipped if any of the predicates return false.
Typical usage (from Java):
myTask.onlyIf("run only in production environment", new Spec<Task>() { boolean isSatisfiedBy(Task task) { return isProductionEnvironment(); } }); -
setOnlyIf
Beschreibung aus Schnittstelle kopiert:TaskExecute the task only if the given spec is satisfied. The spec will be evaluated at task execution time, not during configuration. If the Spec is not satisfied, the task will be skipped.
The given predicate replaces all such predicates for this task.
-
setOnlyIf
Beschreibung aus Schnittstelle kopiert:TaskExecute the task only if the given spec is satisfied. The spec will be evaluated at task execution time, not during configuration. If the Spec is not satisfied, the task will be skipped.
The given predicate replaces all such predicates for this task.
-
getDidWork
public boolean getDidWork()Beschreibung aus Schnittstelle kopiert:TaskChecks if the task actually did any work. Even if a Task executes, it may determine that it has nothing to do. For example, a compilation task may determine that source files have not changed since the last time a the task was run.
- Angegeben von:
getDidWorkin SchnittstelleTask- Setzt außer Kraft:
getDidWorkin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- true if this task did any work
-
setDidWork
public void setDidWork(boolean didWork) Beschreibung aus Schnittstelle kopiert:TaskSets whether the task actually did any work. Most built-in tasks will set this automatically, but it may be useful to manually indicate this for custom user tasks.- Angegeben von:
setDidWorkin SchnittstelleTask- Setzt außer Kraft:
setDidWorkin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
didWork- indicates if the task did any work
-
getEnabled
public boolean getEnabled()Beschreibung aus Schnittstelle kopiert:TaskReturns if this task is enabled or not.
- Angegeben von:
getEnabledin SchnittstelleTask- Setzt außer Kraft:
getEnabledin Klasseorg.gradle.api.internal.AbstractTask- Siehe auch:
-
setEnabled
public void setEnabled(boolean enabled) Beschreibung aus Schnittstelle kopiert:TaskSet the enabled state of a task. If a task is disabled none of the its actions are executed. Note that disabling a task does not prevent the execution of the tasks which this task depends on.
- Angegeben von:
setEnabledin SchnittstelleTask- Setzt außer Kraft:
setEnabledin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
enabled- The enabled state of this task (true or false)
-
getPath
Beschreibung aus Schnittstelle kopiert:TaskReturns the path of the task, which is a fully qualified name for the task. The path of a task is the path of its
Projectplus the name of the task, separated by:. -
dependsOn
Beschreibung aus Schnittstelle kopiert:TaskAdds the given dependencies to this task. See here for a description of the types of objects which can be used as task dependencies.
-
doFirst
Beschreibung aus Schnittstelle kopiert:TaskAdds the given
Actionto the beginning of this task's action list. -
doFirst
Beschreibung aus Schnittstelle kopiert:TaskAdds the given
Actionto the beginning of this task's action list. -
doLast
Beschreibung aus Schnittstelle kopiert:TaskAdds the given
Actionto the end of this task's action list. -
doLast
Beschreibung aus Schnittstelle kopiert:TaskAdds the given
Actionto the end of this task's action list. -
compareTo
- Angegeben von:
compareToin SchnittstelleComparable<Task>- Setzt außer Kraft:
compareToin Klasseorg.gradle.api.internal.AbstractTask
-
getLogger
Beschreibung aus Schnittstelle kopiert:TaskReturns the logger for this task. You can use this in your build file to write log messages.
-
property
Beschreibung aus Schnittstelle kopiert:TaskReturns the value of the given property of this task. This method locates a property as follows:
- If this task object has a property with the given name, return the value of the property.
- If this task has an extension with the given name, return the extension.
- If this task's convention object has a property with the given name, return the value of the property.
- If this task has an extra property with the given name, return the value of the property.
- If not found, throw
MissingPropertyException
- Angegeben von:
propertyin SchnittstelleTask- Setzt außer Kraft:
propertyin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
propertyName- The name of the property.- Gibt zurück:
- The value of the property, possibly null.
- Löst aus:
MissingPropertyException- When the given property is unknown.
-
hasProperty
Beschreibung aus Schnittstelle kopiert:TaskDetermines if this task has the given property. See here for details of the properties which are available for a task.
- Angegeben von:
hasPropertyin SchnittstelleTask- Setzt außer Kraft:
hasPropertyin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
propertyName- The name of the property to locate.- Gibt zurück:
- True if this project has the given property, false otherwise.
-
setProperty
Beschreibung aus Schnittstelle kopiert:TaskSets a property of this task. This method searches for a property with the given name in the following locations, and sets the property on the first location where it finds the property.
- The task object itself. For example, the
enabledproject property. - The task's convention object.
- The task's extra properties.
MissingPropertyExceptionis thrown.- Angegeben von:
setPropertyin SchnittstelleTask- Setzt außer Kraft:
setPropertyin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
name- The name of the propertyvalue- The value of the property
- The task object itself. For example, the
-
getDescription
Beschreibung aus Schnittstelle kopiert:TaskReturns the description of this task.- Angegeben von:
getDescriptionin SchnittstelleTask- Setzt außer Kraft:
getDescriptionin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- the description. May return null.
-
setDescription
Beschreibung aus Schnittstelle kopiert:TaskSets a description for this task. This should describe what the task does to the user of the build. The description will be displayed whengradle tasksis called.- Angegeben von:
setDescriptionin SchnittstelleTask- Setzt außer Kraft:
setDescriptionin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
description- The description of the task. Might be null.
-
getGroup
Beschreibung aus Schnittstelle kopiert:TaskReturns the task group which this task belongs to. The task group is used in reports and user interfaces to group related tasks together when presenting a list of tasks to the user. -
setGroup
Beschreibung aus Schnittstelle kopiert:TaskSets the task group which this task belongs to. The task group is used in reports and user interfaces to group related tasks together when presenting a list of tasks to the user. -
getDestroyables
Beschreibung aus Schnittstelle kopiert:TaskReturns the destroyables of this task.
- Angegeben von:
getDestroyablesin SchnittstelleTask- Setzt außer Kraft:
getDestroyablesin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The destroyables. Never returns null.
-
getLocalState
Beschreibung aus Schnittstelle kopiert:TaskReturns the local state of this task.- Angegeben von:
getLocalStatein SchnittstelleTask- Setzt außer Kraft:
getLocalStatein Klasseorg.gradle.api.internal.AbstractTask
-
getTemporaryDir
Beschreibung aus Schnittstelle kopiert:TaskReturns a directory which this task can use to write temporary files to. Each task instance is provided with a separate temporary directory. There are no guarantees that the contents of this directory will be kept beyond the execution of the task.
- Angegeben von:
getTemporaryDirin SchnittstelleTask- Setzt außer Kraft:
getTemporaryDirin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The directory. Never returns null. The directory will already exist.
-
setMustRunAfter
Beschreibung aus Schnittstelle kopiert:TaskSpecifies the set of tasks that this task must run after.
task taskY { mustRunAfter = ["taskX1", "taskX2"] }For each supplied task, this action adds a task 'ordering', and does not specify a 'dependency' between the tasks. As such, it is still possible to execute 'taskY' without first executing the 'taskX' in the example.
See here for a description of the types of objects which can be used to specify an ordering relationship.
- Angegeben von:
setMustRunAfterin SchnittstelleTask- Setzt außer Kraft:
setMustRunAfterin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
mustRunAfterTasks- The set of task paths this task must run after.
-
mustRunAfter
Beschreibung aus Schnittstelle kopiert:TaskSpecifies that this task must run after all of the supplied tasks.
task taskY { mustRunAfter "taskX" }For each supplied task, this action adds a task 'ordering', and does not specify a 'dependency' between the tasks. As such, it is still possible to execute 'taskY' without first executing the 'taskX' in the example.
See here for a description of the types of objects which can be used to specify an ordering relationship.
- Angegeben von:
mustRunAfterin SchnittstelleTask- Setzt außer Kraft:
mustRunAfterin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
paths- The tasks this task must run after.- Gibt zurück:
- the task object this method is applied to
-
getMustRunAfter
Beschreibung aus Schnittstelle kopiert:TaskReturns tasks that this task must run after.
- Angegeben von:
getMustRunAfterin SchnittstelleTask- Setzt außer Kraft:
getMustRunAfterin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The tasks that this task must run after. Returns an empty set if this task has no tasks it must run after.
-
setFinalizedBy
Beschreibung aus Schnittstelle kopiert:TaskSpecifies the set of finalizer tasks for this task.
task taskY { finalizedBy = ["taskX1", "taskX2"] }See here for a description of the types of objects which can be used to specify a finalizer task.
- Angegeben von:
setFinalizedByin SchnittstelleTask- Setzt außer Kraft:
setFinalizedByin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
finalizedByTasks- The tasks that finalize this task.
-
finalizedBy
Beschreibung aus Schnittstelle kopiert:TaskAdds the given finalizer tasks for this task.
task taskY { finalizedBy "taskX" }See here for a description of the types of objects which can be used to specify a finalizer task.
- Angegeben von:
finalizedByin SchnittstelleTask- Setzt außer Kraft:
finalizedByin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
paths- The tasks that finalize this task.- Gibt zurück:
- the task object this method is applied to
-
getFinalizedBy
Beschreibung aus Schnittstelle kopiert:TaskReturns tasks that finalize this task.
- Angegeben von:
getFinalizedByin SchnittstelleTask- Setzt außer Kraft:
getFinalizedByin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The tasks that finalize this task. Returns an empty set if there are no finalising tasks for this task.
-
shouldRunAfter
Beschreibung aus Schnittstelle kopiert:TaskSpecifies that this task should run after all of the supplied tasks.
task taskY { shouldRunAfter "taskX" }For each supplied task, this action adds a task 'ordering', and does not specify a 'dependency' between the tasks. As such, it is still possible to execute 'taskY' without first executing the 'taskX' in the example.
See here for a description of the types of objects which can be used to specify an ordering relationship.
- Angegeben von:
shouldRunAfterin SchnittstelleTask- Setzt außer Kraft:
shouldRunAfterin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
paths- The tasks this task should run after.- Gibt zurück:
- the task object this method is applied to
-
setShouldRunAfter
Beschreibung aus Schnittstelle kopiert:TaskSpecifies the set of tasks that this task should run after.
task taskY { shouldRunAfter = ["taskX1", "taskX2"] }For each supplied task, this action adds a task 'ordering', and does not specify a 'dependency' between the tasks. As such, it is still possible to execute 'taskY' without first executing the 'taskX' in the example.
See here for a description of the types of objects which can be used to specify an ordering relationship.
- Angegeben von:
setShouldRunAfterin SchnittstelleTask- Setzt außer Kraft:
setShouldRunAfterin Klasseorg.gradle.api.internal.AbstractTask- Parameter:
shouldRunAfterTasks- The set of task paths this task should run after.
-
getShouldRunAfter
Beschreibung aus Schnittstelle kopiert:TaskReturns tasks that this task should run after.
- Angegeben von:
getShouldRunAfterin SchnittstelleTask- Setzt außer Kraft:
getShouldRunAfterin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The tasks that this task should run after. Returns an empty set if this task has no tasks it must run after.
-
getTimeout
Beschreibung aus Schnittstelle kopiert:TaskThe timeout of this task.
task myTask { timeout = Duration.ofMinutes(10) }The Thread executing this task will be interrupted if the task takes longer than the specified amount of time to run. In order for a task to work properly with this feature, it needs to react to interrupts and must clean up any resources it opened.
By default, tasks never time out.
- Angegeben von:
getTimeoutin SchnittstelleTask- Setzt außer Kraft:
getTimeoutin Klasseorg.gradle.api.internal.AbstractTask
-
usesService
Beschreibung aus Schnittstelle kopiert:TaskRegisters aBuildServicethat is used by this task soits constraint on parallel executioncan be honored.This is not necessary for task properties declared as
ServiceReferences.- Angegeben von:
usesServicein SchnittstelleTask- Setzt außer Kraft:
usesServicein Klasseorg.gradle.api.internal.AbstractTask- Parameter:
service- The service provider.- Siehe auch:
-
getState
public org.gradle.api.internal.tasks.TaskStateInternal getState()Beschreibung aus Schnittstelle kopiert:TaskReturns the execution state of this task. This provides information about the execution of this task, such as whether it has executed, been skipped, has failed, etc. -
getTaskDependencies
public org.gradle.api.internal.tasks.TaskDependencyInternal getTaskDependencies()Beschreibung aus Schnittstelle kopiert:TaskReturns a
TaskDependencywhich contains all the tasks that this task depends on.Calling this method from a task action is not supported when configuration caching is enabled.
- Angegeben von:
getTaskDependenciesin SchnittstelleTask- Setzt außer Kraft:
getTaskDependenciesin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The dependencies of this task. Never returns null.
-
onlyIf
Beschreibung aus Schnittstelle kopiert:TaskExecute the task only if the given closure returns true. The closure will be evaluated at task execution time, not during configuration. The closure will be passed a single parameter, this task. If the closure returns false, the task will be skipped.
You may add multiple such predicates. The task is skipped if any of the predicates return false.
Typical usage:
myTask.onlyIf { isProductionEnvironment() } -
setOnlyIf
Beschreibung aus Schnittstelle kopiert:TaskExecute the task only if the given closure returns true. The closure will be evaluated at task execution time, not during configuration. The closure will be passed a single parameter, this task. If the closure returns false, the task will be skipped.
The given predicate replaces all such predicates for this task.
-
getLogging
Beschreibung aus Schnittstelle kopiert:TaskReturns theLoggingManagerwhich can be used to receive logging and to control the standard output/error capture for this task. By default, System.out is redirected to the Gradle logging system at the QUIET log level, and System.err is redirected at the ERROR log level.- Angegeben von:
getLoggingin SchnittstelleTask- Setzt außer Kraft:
getLoggingin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- the LoggingManager. Never returns null.
-
getInputs
public org.gradle.api.internal.TaskInputsInternal getInputs()Beschreibung aus Schnittstelle kopiert:TaskReturns the inputs of this task.
-
getOutputs
public org.gradle.api.internal.TaskOutputsInternal getOutputs()Beschreibung aus Schnittstelle kopiert:TaskReturns the outputs of this task.
- Angegeben von:
getOutputsin SchnittstelleTask- Angegeben von:
getOutputsin Schnittstelleorg.gradle.api.internal.TaskInternal- Setzt außer Kraft:
getOutputsin Klasseorg.gradle.api.internal.AbstractTask- Gibt zurück:
- The outputs. Never returns null.
-
doFirst
Beschreibung aus Schnittstelle kopiert:TaskAdds the given closure to the beginning of this task's action list. The closure is passed this task as a parameter when executed.
-
doLast
Beschreibung aus Schnittstelle kopiert:TaskAdds the given closure to the end of this task's action list. The closure is passed this task as a parameter when executed.
-
configure
Beschreibung aus Schnittstelle kopiert:TaskApplies the statements of the closure against this task object. The delegate object for the closure is set to this task.
- Angegeben von:
configurein SchnittstelleConfigurable<Task>- Angegeben von:
configurein SchnittstelleTask- Setzt außer Kraft:
configurein Klasseorg.gradle.api.internal.AbstractTask- Parameter:
closure- The closure to be applied (can be null).- Gibt zurück:
- This task
-
getExtensions
Beschreibung aus Schnittstelle kopiert:ExtensionAwareThe container of extensions.- Angegeben von:
getExtensionsin SchnittstelleExtensionAware- Setzt außer Kraft:
getExtensionsin Klasseorg.gradle.api.internal.AbstractTask
-