I guess I should have been more clear. I want a profile to be active ONLY when the property X is NOT set.

Here's my XML psuedo-code for what I want:

<activation>
  <not>
    <property>
      <name>X</name>
    </property>
  </not>
</activation>

I have been playing with <activeByDefault> and using 'mvn help:active-profiles' to see what profiles are active, but I have not found a solution yet.

-Max

Allan Ramirez wrote:
Yes, set the profile in the settings.xml  via <activeProfiles> section.
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Max Cooper wrote:

I know that I can make a profile active when a property is set...
<activation><property><name>X</name></property></activation>

Or when a property is set to a certain value...
<activation><property><name>X</name><value>Y</value></property></activation>


Is there a way to make a profile active when a certain property is NOT set?

Thanks,
-Max

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to