On 03/01/2011, at 10:35 PM, Joern Huxhorn wrote:

> Hi list, especially Adam.
> 
> We just had a quick chat on IRC about processResources not being executed 
> even though values used in expand have changed.
> You have pointed me to http://jira.codehaus.org/browse/GRADLE-1276 and 
> mentioned that adding
> processResources { outputs.upToDateWhen { false } }
> would fix the issue.
> 
> Well... kind of...
> processResources was indeed executed as expected but jar and all the other 
> archive related tasks weren't.
> I don't know why those don't realize that the input did, in fact, change.

Those other tasks will only execute if their direct inputs have changed. So, if 
processResources is generating the same output each time, even though the 
properties have changed, then the other tasks will not execute.

Perhaps you could start by checking the processResources is actually generating 
different content in its output files when the properties change (that the 
content changes, not just that the timestamp changes).


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to