|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
@Incubating @NonExtensible public interface IncrementalTaskInputs
Provides access to any input files that need to be processed by an incremental task.
An incremental task action is one that accepts a single IncrementalTaskInputs parameter. The task can then provide an action to execute for all input files that are out of date with respect to the previous execution of the task, and a separate action for all input files that have been removed since the previous execution.
class IncrementalReverseTask extends DefaultTask {
In the case where Gradle is unable to determine which input files need to be reprocessed, then all of the input files will be reported as outOfDate. Cases where this occurs include:
false
.Method Summary | |
---|---|
boolean
|
isIncremental()
Indicates if it was possible for Gradle to determine which exactly which input files were out of date compared to a previous execution. |
void
|
outOfDate(Action outOfDateAction)
Executes the action for all of the input files that are out-of-date since the previous task execution. |
void
|
removed(Action removedAction)
Executes the action for all of the input files that were removed since the previous task execution. |
Method Detail |
---|
public boolean isIncremental()
When true
:
When false
:
public void outOfDate(Action outOfDateAction)
true
, the action will be executed for any added or modified input file.false
, the action will be executed for every input file for the task.This method may only be called a single time for a single IncrementalTaskInputs instance.
public void removed(Action removedAction)
true
, the action will be executed for any removed input file.false
, the action will not be executed.This method may only be called a single time for a single IncrementalTaskInputs instance.
This method may only be called after outOfDate has been called.
Gradle API 1.12