It is possible - th link below should help and its the ! operator which is important (is this documented anywhere???) :

http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114834785006237&w=2

I have used it such that if a certain property is not passed in, __or is false__ (note the ! on the value), then I activate that profile:

<activation>
<property>
 <name>!skip.something</name>
 <value>!true</value>
</property>
</activation>

----- Original Message ----- From: "Veyret Stephane" <[EMAIL PROTECTED]>
To: <users@maven.apache.org>
Sent: Monday, June 05, 2006 12:23 PM
Subject: [m2] Profile activation with property non-existance


Hi,

It is possible to automatically activate a profile testing a property existance (tag profile/activation/property). But is it possible to automatically activate another profile when this same property does
not exist ? This would be very usefull.
For exemple :
<profiles>
 <!-- Delivery mode -->
 <profile>
   <activation>
     <property>
       <name>delivery-version</name>
     </property>
   </activation>
 </profile>
 <!-- Developpement mode -->
 <profile>
   <activation>
     <noproperty>
       <name>delivery-version</name>
     </noproperty>
   </activation>
 </profile>
</profiles>

Thank you.

---------------------------------------------------------------------
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