You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Saloucious <sa...@gmail.com> on 2007/11/23 18:03:59 UTC
Active a profile if another is not activated
Hi,
Is it possible to activate a profile if a profile is or is not activated ?
--
View this message in context: http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13915247
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [Solved]Re: Active a profile if another is not activated
Posted by Saloucious <sa...@gmail.com>.
Ok my problem is solved,
--> Sorry
Saloucious wrote:
>
> Ok my problem are solved,
> because I haven't understand that defining a profiles List on command line
> (-P) overrides actived By Default profiles configuration
>
>
>
> Wendy Smoak-3 wrote:
>>
>> On Nov 23, 2007 10:03 AM, Saloucious <sa...@gmail.com> wrote:
>>
>>> Is it possible to activate a profile if a profile is or is not activated
>>> ?
>>
>> Not directly, but what problem are you trying to solve?
>>
>> If you need to activate exactly one of a set of profiles, you can do
>> it with the absence/presence or value of a system property.
>>
>> --
>> Wendy
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13947581
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
[Solved]Re: Active a profile if another is not activated
Posted by Saloucious <sa...@gmail.com>.
Ok my problem are solved,
because I haven't understand that defining a profiles List on command line
(-P) overrides actived By Default profiles configuration
Wendy Smoak-3 wrote:
>
> On Nov 23, 2007 10:03 AM, Saloucious <sa...@gmail.com> wrote:
>
>> Is it possible to activate a profile if a profile is or is not activated
>> ?
>
> Not directly, but what problem are you trying to solve?
>
> If you need to activate exactly one of a set of profiles, you can do
> it with the absence/presence or value of a system property.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13947580
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Active a profile if another is not activated
Posted by Wendy Smoak <ws...@gmail.com>.
On Nov 23, 2007 10:03 AM, Saloucious <sa...@gmail.com> wrote:
> Is it possible to activate a profile if a profile is or is not activated ?
Not directly, but what problem are you trying to solve?
If you need to activate exactly one of a set of profiles, you can do
it with the absence/presence or value of a system property.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Active a profile if another is not activated
Posted by nicolas de loof <ni...@gmail.com>.
A solution to test :
<profile>
<id>profile1</id>
<activation>
<property>!foo</property> // get active if foo is NOT set
</activation>
</profile>
<profile>
<id>profile2</id>
<properties>
<foo>bar</foo> // define foo when active -> disable profile 1
</properties>
</profile>
2007/11/23, Saloucious <sa...@gmail.com>:
>
>
> Hi,
>
> Is it possible to activate a profile if a profile is or is not activated ?
>
>
> --
> View this message in context:
> http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13915247
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>