You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marco Sandrini (JIRA)" <ji...@codehaus.org> on 2008/07/07 14:43:26 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=140916#action_140916 ] 

Marco Sandrini commented on MNG-3328:
-------------------------------------

boolean operators could be achieved with the following syntax (let's assume with want to expression the condition ((a && b) || (c && d))

<activations>
  <activation>
    <property>
      <name>my-prop-A</name>
      <value>valueA</value>
    </property>
    <property>
      <name>my-prop-B</name>
      <value>valueB</value>
    </property>
  </activation>
  <activation>
    <property>
      <name>my-prop-C</name>
      <value>valueC</value>
    </property>
    <property>
      <name>my-prop-D</name>
      <value>valueD</value>
    </property>
  </activation>
</activations> 

so all the conditions within one activation are considered as an AND and the different activation elements are considered as an OR. The downside of this proposal is of course that it would break the current POM model.

> Allow multiple profile activation properties.
> ---------------------------------------------
>
>                 Key: MNG-3328
>                 URL: http://jira.codehaus.org/browse/MNG-3328
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Profiles
>    Affects Versions: 2.0.8
>            Reporter: Paul Gier
>             Fix For: 2.1
>
>
> The pom model should be changed to allow multiple properties to activate a profile.  So the profile activation section could look something like this:
> <activation>
>   <properties>
>     <my-prop-1>some-value</my-prop-1>
>     <my-prop-2>another-value</my-prop-2>
>   </properties>
> </activation>
> 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