Disallow the use of 'temporaryDir' in task inputs/outputs?


(Stephane Galles) #1

It is very tempting to use the task ‘temporaryDir’ in the inputs/ouputs of the task (and I’ve already found tasks written this way) However according to the documentation :

There are no guarantees that the contents of this directory will be kept beyond the execution of the task If this still holds true, shouldn’t Gradle throw an exception when temporaryDir is used in the inputs/outputs of a task ? Thanks.