SourceSetOutput with Dir

(hlship) #1

It would be nice if you could pass a Task to SourceSetOutput.dir() and it would automatically link the Task’s output dir(s), etc.

Alternately, a fromTask() method would perhaps be more readable.

I don’t like the repetition of declaring a variable for my output directory, and using it in the SourceSetOutput and my task. It also gets in the way when the task’s default output directory works.

(Luke Daley) #2

I think I follow you, but could you please post some code on what you have to do now vs. what you would like to make it clear?