What are the semantics you are trying to communicate here? What are you trying to accomplish?
~~ Robert. On 27 November 2010 17:48, Steven Devijver <[email protected]> wrote: > Hey, > I have these tasks: > def my_dir = "test_dir" > task A(type: Delete) { > delete = my_dir > } > task B(dependsOn: "A") { > outputs.upToDateWhen { > file(my_dir).exists() > } > doFirst { > ant.mkdir dir: my_dir > } > } > I was assuming that when a task is up-to-date its dependencies wouldn't be > executed. However, B is never up-to-date because the upToDateWhen closure is > executed before B is executed but not before A is executed. A is always > executed regardless of B's outputs. > Is there a way of avoiding B's dependencies are executed when its outputs > are up-to-date? > Thanks > Steven > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
