|
|
|
For better compatibility with the current maven model, the syntax for this should look more like this:
<activation>
<property>
<name>my-prop-1</name>
<value>some-value</value>
</property>
<property>
<name>my-prop-2</name>
<value>another-value</value>
</property>
</activation>
If either of these properties match the given value, the profile should be activated. boolean operators could be achieved with the following syntax (let's assume with want to express the condition ((a && b) || (c && d)) )
<activations> <activation> <properties> <property> <name>my-prop-A</name> <value>valueA</value> </property> <property> <name>my-prop-B</name> <value>valueB</value> </property> </properties> </activation> <activation> <properties> <property> <name>my-prop-C</name> <value>valueC</value> </property> <property> <name>my-prop-D</name> <value>valueD</value> </property> </properties> </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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
—
<activation>
<and>
<property><name>prop-1</name></property>
<property><name>prop-2</name></property>
<property><name>prop-3</name></property>
<or>
<property><name>prop-4</name></property>
<not>
<property><name>prop-5</name></property>
</not>
<property><name>prop-6</name></property>
<os>MacOS</os>
</or>
</and>
</activation>
—