You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gebhardt,
Jörn <Jo...@comsoft.aero> on 2010/12/03 15:34:18 UTC
Profile activation by properties
Hi,
is there any possibility to activate a Maven profile if a system property has either value "A" OR value "B" but NOT if it has value "C"?
Unfortunately it is neither allowed to specify multiple "value" entries like this:
<profile>
<id>playground</id>
<activation>
<property>
<name>myProp</name>
<value>A</value>
<value>B</value>
</property>
</activation>
</profile>
Nor to specify more than one "property" element like this:
<profile>
<id>playground</id>
<activation>
<property>
<name>myProp</name>
<value>A</value>
</property>
<property>
<name>myProp</name>
<value>B</value>
</property>
</activation>
</profile>
I also tried all kind of separators in the "value" value (e.g. <value>A,B</value> or <value>A;B</value>), however, nothing seems to work.
If it is not supported now, is there any chance that it will be supported in a future Maven version?
Thanks in advance,
Jörn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org