Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Bind task output files to properties

This change introduces a binding between task properties and output files. Output annotations automatically register property values to the corresponding property name.

The `TaskOutputs` API gained new methods with an `include` prefix that allow more flexible configuration of output properties, including specifying the property name to bind the files to. The old methods have been deprecated.

Properties that were not assigned a property name will be bound to a sequence of pseudo names like `$1`, `$2` etc.

+review REVIEW-6038

    • -1
    • +1
    ./InputOutputEnsuringTaskExecuterIntegrationTest.groovy
  1. … 41 more files in changeset.
Bind task input files to properties

This change introduces a binding between task properties and input files. Input annotations automatically register property values to the corresponding property name.

The `TaskInputs` API gained new methods with an `include` prefix that allow more flexible configuration of input properties, including specifying the property name to bind the files to. The old methods have been deprecated.

Properties that were not assigned a property name will be bound to a sequence of pseudo names like `$1`, `$2` etc.

+review REVIEW-6038

    • -1
    • +1
    ./InputOutputEnsuringTaskExecuterIntegrationTest.groovy
  1. … 33 more files in changeset.
Clarify purpose of test

+review REVIEW-6010

    • -1
    • +1
    ./InputOutputEnsuringTaskExecuterIntegrationTest.groovy
Introduce `TaskInputs/TaskOutputs.configure()`

This allows delayed configuration of inputs and outputs using the fully

configured task. When using e.g. `TaskOutputs.files()` the plugin could

supply a closure that would be resolved right before the task is

executed. To deprecate `TaskOutputs.files()` there needs to be a way to

do the same by calling `TaskOutputs.file()`.

+review REVIEW-6010

    • -0
    • +56
    ./InputOutputEnsuringTaskExecuterIntegrationTest.groovy
  1. … 12 more files in changeset.