Groovy's SimpleTemplateEngine, and therefore expand(), doesn't work for maps whose keys contain dots, because it will interpret them as property expressions. The fastest and most stable way to do filtering is with an Ant filter. Something like this:
import org.apache.tools.ant.filters.ReplaceTokens task copy(type: Copy) { ... filter(ReplaceTokens, tokens: props) } By default, this expects tokens to be delimited by @ on both ends. Alternatively, you can use the free-form filter: task copy(type: Copy) { ... filter { String line -> ... } } -- Peter Niederwieser Principal Engineer, Gradleware http://gradleware.com Creator, Spock Framework http://spockframework.org Twitter: @pniederw -- View this message in context: http://gradle.1045684.n5.nabble.com/Trying-to-use-expand-in-the-copy-task-tp4922799p4922940.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email