You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gary fry (JIRA)" <ji...@codehaus.org> on 2010/01/12 15:39:55 UTC

[jira] Commented: (MNG-3328) Allow multiple profile activation properties.

    [ 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