RE: how to use profiles exclusively? (HELP!)

2007-11-16 Thread Brian E. Fox
Set one profile to have the activeByDefaulttrue/... and when you activate 
the other, the default one gets deactivated automatically.

-Original Message-
From: Roland Asmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 15, 2007 12:03 PM
To: Maven Users List
Subject: Re: how to use profiles exclusively? (HELP!)

You activate the release-profile yourself by setting the property to the 
expected value!

Remove the properties-tag from the profile and everything should work just 
fine!


On Wednesday 14 November 2007 23:46, dev dev wrote:
 I have defined 2 project profiles (below) and the goal is to be able
 to run in exclusively in devel or release environment (and not both).
 However, when i run mvn help:active-profiles, i got the below message.
 It should be just release and NOT both (devel and release). What did
  you do wrong, is this a bug in Maven2?

 Active Profiles for Project
 'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':

 The following profiles are active:

  - devel (source: pom)
  - release (source: pom)


 +++

 project
 ...
 profile
 idrelease/id
 properties
   environment.typerelease/environment.type
 /properties
 activation
  property
   nameenvironment.type/name
   valuerelease/value
  /property
 /activation
 /profile

 profile
 iddevel/id
 activation
  property
   name!environment.type/name !--This profile
 is activated when no ${environment.type} property is set. --
  /property
 /activation
 /profile

 
 /project

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use profiles exclusively? (HELP!)

2007-11-15 Thread Roland Asmann
You activate the release-profile yourself by setting the property to the 
expected value!

Remove the properties-tag from the profile and everything should work just 
fine!


On Wednesday 14 November 2007 23:46, dev dev wrote:
 I have defined 2 project profiles (below) and the goal is to be able
 to run in exclusively in devel or release environment (and not both).
 However, when i run mvn help:active-profiles, i got the below message.
 It should be just release and NOT both (devel and release). What did
  you do wrong, is this a bug in Maven2?

 Active Profiles for Project
 'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':

 The following profiles are active:

  - devel (source: pom)
  - release (source: pom)


 +++

 project
 ...
 profile
 idrelease/id
 properties
   environment.typerelease/environment.type
 /properties
 activation
  property
   nameenvironment.type/name
   valuerelease/value
  /property
 /activation
 /profile

 profile
 iddevel/id
 activation
  property
   name!environment.type/name !--This profile
 is activated when no ${environment.type} property is set. --
  /property
 /activation
 /profile

 
 /project

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to use profiles exclusively? (HELP!)

2007-11-14 Thread dev dev
I have defined 2 project profiles (below) and the goal is to be able
to run in exclusively in devel or release environment (and not both).
However, when i run mvn help:active-profiles, i got the below message.
It should be just release and NOT both (devel and release). What did
 you do wrong, is this a bug in Maven2?

Active Profiles for Project
'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':

The following profiles are active:

 - devel (source: pom)
 - release (source: pom)


+++

project
...
profile
idrelease/id
properties
  environment.typerelease/environment.type
/properties
activation
 property
  nameenvironment.type/name
  valuerelease/value
 /property
/activation
/profile

profile
iddevel/id
activation
 property
  name!environment.type/name !--This profile
is activated when no ${environment.type} property is set. --
 /property
/activation
/profile


/project

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use profiles exclusively? (HELP!)

2007-11-14 Thread Wayne Fay
Try changing the dot . in environment.type to an underscore _.
That may do it. Not sure -- I didn't test it. Dots can sometimes cause
issues.

Wayne

On 11/14/07, dev dev [EMAIL PROTECTED] wrote:
 I have defined 2 project profiles (below) and the goal is to be able
 to run in exclusively in devel or release environment (and not both).
 However, when i run mvn help:active-profiles, i got the below message.
 It should be just release and NOT both (devel and release). What did
  you do wrong, is this a bug in Maven2?

 Active Profiles for Project
 'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':

 The following profiles are active:

  - devel (source: pom)
  - release (source: pom)


 +++

 project
 ...
profile
idrelease/id
properties
  environment.typerelease/environment.type
/properties
activation
 property
  nameenvironment.type/name
  valuerelease/value
 /property
/activation
/profile

profile
iddevel/id
activation
 property
  name!environment.type/name !--This profile
 is activated when no ${environment.type} property is set. --
 /property
/activation
/profile

 
 /project

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]