| Hello Neil, a dependsOn declaration in a doFirst closure has no effect, because the doFirst closure is executed, when the task graph is already created and gradle executes each task in that directed graph. try ------------------- bar{ def aFile = file("/path/to/file") if (!aFile.exists()) { println "Doesn't
exist" dependsOn foo } } ------------------- instead. BTW.: the gradle forum (http://forums.gradle.org/gradle) is a much better place for this kind of question. regards, René
|
- [gradle-user] Conditional Task Dependency Neil Chaudhuri
- Re: [gradle-user] Conditional Task Dependency Rene Groeschke
- Re: [gradle-user] Conditional Task Dependency Neil Chaudhuri
- Re: [gradle-user] Conditional Task Dependency Rene Groeschke

