TaskOutputs (Gradle API 8.14) (original) (raw)


public interface TaskOutputs

A TaskOutputs represents the outputs of a task.

You can obtain a TaskOutputs instance using Task.getOutputs().

void
Cache the results of the task only if the given spec is satisfied.
void
Cache the results of the task only if the given spec is satisfied.
Registers an output directory for this task.
Registers some output directories for this task.
void
Disable caching the results of the task if the given spec is satisfied.
Registers some output file for this task.
Registers some output files for this task.
[getFiles](#getFiles%28%29)()
Returns the output files of this task.
boolean
Returns true if this task has declared any outputs.
void
Adds a predicate to determine whether previous outputs of this task can be reused.
void
Adds a predicate to determine whether previous outputs of this task can be reused.