[GRADLE-872] Copy not paying attention to upToDateWhen Created: 24/Mar/10 Updated: 04/Jan/13 Resolved: 31/Dec/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 0.9.1 |
Type: | Bug | ||
Reporter: | Jesse Eichar | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 1 |
Description |
I am copying some files and applying a filter to them. I want the task to depend on the file that contains the ReplaceTokens so I added an upToDateWhen closure. But it is ignored. Here is my tasks in my build.gradle file: task filtering(type:Copy) { inputs.dir('filters') def properties = new Properties() filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: properties) outputs.upToDateWhen { task -> false }} Note: inputs.properties properties will not fix the problem as it is affected by the same bug |