You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Neil Chaudhuri <nc...@potomacfusion.com> on 2010/02/10 19:49:06 UTC

Getting the Profile Name From A Property

Is there a built-in Maven property for obtaining the name of the profile currently active?

Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting the Profile Name From A Property

Posted by Anders Hammar <an...@hammar.net>.
http://www.sonatype.com/books/mvnref-book/reference/profiles-sect-listing-active-profiles.html

/Anders

On Wed, Feb 10, 2010 at 21:06, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:

> you can have multiple profiles active at the same time, so you need to ask
> a slightly different question: either
>
> how do I tell if profile A is active? have profile A define a property eg
> profile-A-active=true
>
> how do I get a list of all the active profiles? (I'm not sure about this
> one)
>
> Sent from my [rhymes with tryPod] ;-)
>
>
> On 10 Feb 2010, at 18:49, Neil Chaudhuri <nc...@potomacfusion.com>
> wrote:
>
>  Is there a built-in Maven property for obtaining the name of the profile
>> currently active?
>>
>> Thanks.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Getting the Profile Name From A Property

Posted by Stephen Connolly <st...@gmail.com>.
you can have multiple profiles active at the same time, so you need to  
ask a slightly different question: either

how do I tell if profile A is active? have profile A define a property  
eg profile-A-active=true

how do I get a list of all the active profiles? (I'm not sure about  
this one)

Sent from my [rhymes with tryPod] ;-)

On 10 Feb 2010, at 18:49, Neil Chaudhuri  
<nc...@potomacfusion.com> wrote:

> Is there a built-in Maven property for obtaining the name of the  
> profile currently active?
>
> Thanks.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org