maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Mari <mari.france...@gmail.com>
Subject Re: Activating profiles by multiple properties
Date Fri, 23 Nov 2012 09:10:22 GMT
As far as I know, Maven doesn't support this. There's an improvement issue
on Jira [0], but it is still open.

[0] http://jira.codehaus.org/browse/MNG-3328


2012/11/23 Jo Support <jo.support@gmail.com>

> Hello people, I'm in need to activate profiles by multiple property and
> multiple values.
>
> For example:
>
> *Profile:* OpenTheDoor
> *Condition:* IAmInTheMood=TRUE *AND* *(*PersonAtTheDoor=MyBrother
> *OR*PersonAtTheDoor=MySister
> *)*
> *
> *
> I figured out something like:
>
> <profile>
> <id>OpenTheDoor</id>
> <activation>
> <property>
> <name>IAmInTheMood</name>
> <value>TRUE</value>
> </property>
> <property>
> <name>PersonAtTheDoor</name>
> <value>MyBrother</value>
> <value>MySister</value>
> </property>
> </activation>
> ...
> </profile>
>
> Do you think it should work?
> Are properties linked with AND and multiple values of a properties linked
> with OR?
>
> Thanks a lot,
> Jo
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message