On 10/24/2011 10:31 AM, David Kowis wrote:
> On 10/20/2011 09:44 PM, TheKaptain wrote:
>> Another available option is to use the Ant ExpandProperties filter:
>>
>> <paste>
>> import org.apache.tools.ant.filters.ExpandProperties
>>
>> ["test"].each() { env ->
>>     task("configuration$env", type: Copy) {
>>         def props = new Properties()
>>         new
>> File("src/main/filters/filter-${env}.properties").withInputStream {
>>             stream -> props.load(stream)
>>         }
>>         props.each() { k, v ->
>>             println "---> ${k} --> ${v}"
>>             ant.properties[k] = v

AGH! I missed this one line that set it as an ant property that makes
everything work!!!

*headdesk*

This answers my questions and such, thanks,
David

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to