Ah yes, outputs.upToDateWhen { }
I knew there was something like that, as it's the same quick patch Adam gave me
to ensure my jettyRunWar tasks always run (prior to it being recently fixed).
I could not find it referenced in the user's guide, and couldn't remember where
I'd seen a similar thing until your post jogged my memory.
Not having dug into the source, does this get ANDed with the result from the
automatic checking, or does it supercede it completely? I know that
outputs.upToDateWhen { false } always causes it to happen, but I've not tested
the inverse.
-Spencer
--- On Tue, 4/6/10, Hans Dockter <[email protected]> wrote:
Gradle provides the following:
task myTask {
outputs.upToDateWhen {
}
}
That way you can add custom logic on top of the automatic up to date checking
of Gradle.