[GRADLE-737] Redesign copy task to filter tokens in source directory Created: 11/Nov/09  Updated: 04/Jan/13  Resolved: 27/Jun/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: None

Type: Improvement
Reporter: Uldis Karlovs-Karlovskis Assignee: Unassigned
Resolution: Not A Bug Votes: 1


It is absolutely normal case that I have some folder where I want to do tokens filtering more than once. For now it is possible only during real copy operation. If I specify "from" and "into" dir the same task does nothing.
Also it would be nice to have ability to specify more than on "filter" attribute and do filtering of files in sequencial order of filters. Example:

project.copy (){
   from "folder"
   into "folder"
   filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: props)
   filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: props2)

Comment by Luke Daley [ 27/Jun/11 ]

It doesn't make much sense to filter into the same location as this would override the source input files, breaking the task for the future.

If you are unhappy with this resolution please reopen the ticket.

Generated at Wed Jun 30 11:37:34 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.