Hi, 

I've used a flavor of this for properties filtering 
:http://mrhaki.blogspot.com/2009/11/gradle-goodness-using-properties-for.html
and then in processResources:processResources {  expand(config.toProperties()) 
// filter properties by environment}
cheersMagnus


From: [email protected]
To: [email protected]
Date: Mon, 7 Feb 2011 13:22:32 -0600
Subject: [gradle-user] Simulating Maven Profiles



As I transition from Maven to Gradle, I am curious about how to implement 
Maven’s profile mechanism in Gradle. I have found few resources on the topic, 
and the one that seems the most compelling—calling applyFrom on a script whose 
name is provided at build time from the command line—doesn’t strike me as 
optimal. While clever, it seems a bit like an anti-pattern. Any thoughts on 
best practices or other insights into simulating Maven profiles is appreciated. 
Thanks.                                      

Reply via email to