[ 
http://jira.codehaus.org/browse/MNG-3328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206613#action_206613
 ] 
gary fry commented on MNG-3328:
-------------------------------

Would be great if you could marry OS and Properties as an AND condition.

For example,

   <activation>
     <os>
       <family>unix</family>
     </os>
     <property>
       <name>my-prop-2</name>
       <value>another-value</value>
     </property>
   </activation>

Currently, Maven2 looks for the first condition that is true, and the profile 
is activated.  However, this is not very useful if the build needs to run in 
both Windows and Unix environments and you need to do something slightly 
different on each OS, where activation is also determined by a property being 
set at buld time



> Allow multiple profile activation properties.
> ---------------------------------------------
>
>                 Key: MNG-3328
>                 URL: http://jira.codehaus.org/browse/MNG-3328
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Profiles
>    Affects Versions: 2.0.8
>            Reporter: Paul Gier
>             Fix For: 3.x
>
>
> The pom model should be changed to allow multiple properties to activate a 
> profile.  So the profile activation section could look something like this:
> {code:xml}
> <activation>
>   <properties>
>     <my-prop-1>some-value</my-prop-1>
>     <my-prop-2>another-value</my-prop-2>
>   </properties>
> </activation>
> {code}
> This would provide more flexibility in profile activation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to