Slackbot
06/15/2023, 7:04 PMRyan Schmitt
06/15/2023, 7:05 PMChris Lee
06/15/2023, 7:07 PMRyan Schmitt
06/15/2023, 7:40 PMRyan Schmitt
06/15/2023, 7:40 PMChris Lee
06/15/2023, 7:44 PMRyan Schmitt
06/15/2023, 7:48 PMTask
instances aren't serialized, but their modeled inputs and outputs are?Vampire
06/15/2023, 7:53 PMVampire
06/15/2023, 7:53 PMRyan Schmitt
06/16/2023, 12:29 AMfiles.from(codeGeneratorTask)
, is an illusion created by Gradle's API. Internally, what's really happening is that the consuming task gets a reference to the producing task's output properties (e.g. file system locations), as well as some sort of task dependency metadata, but nowhere in the consuming task's object graph is there a reference to the producing task itself, and hence it is not serialized.Chris Lee
06/16/2023, 12:31 AMChris Lee
06/16/2023, 12:32 AMRyan Schmitt
06/16/2023, 12:32 AMChris Lee
06/16/2023, 12:32 AMRyan Schmitt
06/16/2023, 12:37 AMFileTree
, produced by a task, which produces a bunch of files that I need to filter.
2. I first want to apply one set of filtering criteria.
3. If and only if that first set of criteria results in an empty file collection, I want to fall back on a second, broader set of filtering criteria.
I've been pursuing a particular strategy of creating a provider that calls getFiles()
on the FileTree
in step one and proceeds from there. It showed promise, but then I discovered this CC issue. So now I'm concerned that I've outsmarted myself once again by introducing cross-wiring between tasksChris Lee
06/16/2023, 12:39 AMRyan Schmitt
06/16/2023, 12:46 AMRyan Schmitt
06/16/2023, 12:48 AM