Didier Villevalois
07/24/2024, 8:06 AM@InputFile input, and I use an @OutputDirectory for the location where the document is generated.
However, I need to execute the input Kotlin script to determine the other markdown input files, which is already half of the generation process. I understand that I shouldn't/cannot modify the tasks input during the task execution of a DefaultTask (any task?).
Don't I have any other choice than to do twice the script execution, once at task configuration to determine all the input paths (which can be scattered in the project, so cannot use an @InputDirectory) and once more at task execution to do the generation itself?Sergej Koščejev
07/24/2024, 8:19 AMDidier Villevalois
07/24/2024, 8:35 AMSergej Koščejev
07/24/2024, 8:41 AMDidier Villevalois
07/24/2024, 8:43 AMVampire
07/24/2024, 10:11 AMDidier Villevalois
07/24/2024, 10:53 AMVampire
07/24/2024, 12:00 PMMartin
07/24/2024, 8:05 PMIt would introduce an intermediate representation from which I can extract the all source file dependencies.Quick note: make sure not to put absolute paths in there if you don’t want to break build caching