You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gb...@apache.org on 2016/09/22 17:12:53 UTC

svn commit: r1761980 - /maven/site/trunk/content/apt/guides/introduction/introduction-to-profiles.apt

Author: gboue
Date: Thu Sep 22 17:12:53 2016
New Revision: 1761980

URL: http://svn.apache.org/viewvc?rev=1761980&view=rev
Log:
[MNG-6094] Maven Profile activation (via property) bug (or misleading doc): profile active even if property doesn't exist

Clarified documentation as per http://mail-archives.apache.org/mod_mbox/maven-dev/201608.mbox/%3cop.yl3cbvr2kdkhrr@desktop-2khsk44%3e.

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=1761980&r1=1761979&r2=1761980&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 Thu Sep 22 17:12:53 2016
@@ -208,8 +208,8 @@ mvn groupId:artifactId:goal -P profile-1
 </profiles>
 +---+
   
-  The following profile will be activated when the system property "debug" is defined
-  with a value which is not "true".
+  The following profile will be activated when the system property "debug" is not defined, 
+  or is defined with a value which is not "true".
 
 +---+
 <profiles>
@@ -225,6 +225,13 @@ mvn groupId:artifactId:goal -P profile-1
 </profiles>
 +---+
 
+  To activate this you would type one of those on the command line:
+
++---+
+mvn groupId:artifactId:goal
+mvn groupId:artifactId:goal -Ddebug=false
++---+
+
   The next example will trigger the profile when the system property
   "environment" is specified with the value "test":