Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-872

Copy not paying attention to upToDateWhen

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: 0.9
  • Fix Version/s: 0.9.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) {
from file('src/main/filtered-webapp')
into "$buildDir/webapp"

inputs.dir('filters')

def properties = new Properties()
file('filters/global-resource.filter').withReader { properties.load(it) }

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

Activity

  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
There are no comments yet on this issue.

People

  • Assignee:
    Adam Murdoch
    Reporter:
    Jesse Eichar
Vote (1)
Watch (2)

Dates

  • Created:
    24/Mar/10 10:49 PM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    31/Dec/10 2:51 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.