Author: khmarbaise
Date: Wed Aug 10 20:07:22 2016
New Revision: 1755831
URL: http://svn.apache.org/viewvc?rev=1755831&view=rev
Log:
[MNGSITE-234] Added missing documentation about
property activation based on non existing value and inverted value.
Modified:
maven/site/trunk/content/apt/guides/introduction/introduction-to-profiles.apt
Modified:
maven/site/trunk/content/apt/guides/introduction/introduction-to-profiles.apt
URL:
http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/introduction/introduction-to-profiles.apt?rev=1755831&r1=1755830&r2=1755831&view=diff
==============================================================================
---
maven/site/trunk/content/apt/guides/introduction/introduction-to-profiles.apt
(original)
+++
maven/site/trunk/content/apt/guides/introduction/introduction-to-profiles.apt
Wed Aug 10 20:07:22 2016
@@ -176,7 +176,7 @@ mvn groupId:artifactId:goal -P profile-1
</profiles>
+---+
- The profile below will activate the profile when the system property "debug"
is specified
+ The profile below will be activated when the system property "debug" is
specified
with any value:
+---+
@@ -188,6 +188,39 @@ mvn groupId:artifactId:goal -P profile-1
</property>
</activation>
...
+ </profile>
+</profiles>
++---+
+
+ The following profile will be activated when the system property "debug" is
not defined
+ at all:
+
++---+
+<profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>!debug</name>
+ </property>
+ </activation>
+ ...
+ </profile>
+</profiles>
++---+
+
+ The following profile will be activated when the system property "debug" is
defined
+ with a value which is not "true".
+
++---+
+<profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>debug</name>
+ <value>!true</value>
+ </property>
+ </activation>
+ ...
</profile>
</profiles>
+---+