CalculatedTaskInputFileCollectionTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Finalize value of native compile task source file collection at the start of task execution.

    • -6
    • +6
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 3 more files in changeset.
Rename LifecycleAware{Property -> Value}

    • -4
    • +4
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 11 more files in changeset.
Move more things to properties package

    • -4
    • +4
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 35 more files in changeset.
Start addressing review feedback

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

    • -8
    • +8
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 2 more files in changeset.
Don't address task input directories for now and get all tests passing

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

    • -4
    • +4
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 4 more files in changeset.
Don't crash when querying CalculatedTaskInputFileCollection files before execution

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

    • -6
    • +6
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 2 more files in changeset.
Moved the some `FileCollection` implementations for efficiently handling task file inputs out of the native plugins and behind the `TaskFileVarFactory` service, where they can be reused, at least internally for now.

There are 2 implementations which are intended to be used for task input properties: a `ConfigurableFileCollection` that allows build logic to configure a bunch of input files, such as C/C++ source files, and a `FileCollection` that represents some task inputs that are calculated from other inputs, such as the headers of a C/C++ compile task. Both implementations do some in-memory caching during task execution to make snapshotting and task action execution faster.

Improved the implementations a little and added some unit test coverage. The implementations could be further improved, reused in a bunch more places and better integrated into input file snapshotting. This change does just enough so they can be used in the native compile tasks need.

    • -0
    • +130
    ./CalculatedTaskInputFileCollectionTest.groovy
  1. … 14 more files in changeset.