On 10/20/2011 04:32 PM, Peter Niederwieser wrote: > 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 -> ... } > }
So I will have to replace all the property substitutions that are using ${.*} with @.*@ ? David
signature.asc
Description: OpenPGP digital signature