Fair point, Jason. All I'm doing at the moment is interpolating variables in 
resource files based on the profile applied. Of course, there may be other 
things I want to try in the future, but for now do you have any suggestions for 
cleanly interpolating variables by profile?

Thanks.


-----Original Message-----
From: Jason Porter [mailto:[email protected]] 
Sent: Monday, February 07, 2011 2:27 PM
To: [email protected]
Subject: Re: [gradle-user] Simulating Maven Profiles

On Mon, Feb 7, 2011 at 12:22, Neil Chaudhuri
<[email protected]> wrote:
> 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.

It may actually depend on what you want to do with them.  Modifying
deps I've done something very similar based on the DAG containing
tasks and modifying at that point, adding plugins, not exactly sure.

>
>
> Thanks.
>
>



-- 
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp

Software Engineer
Open Source Advocate

PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to