This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a80c8ce Add example of profile activation with value true
6a80c8ce is described below

commit 6a80c8ced3a9d98fe02e189724acbf64a15e3576
Author: Arend von Reinersdorff <ar...@arendvr.com>
AuthorDate: Fri Jan 31 17:21:21 2025 +0100

    Add example of profile activation with value true
---
 .../introduction/introduction-to-profiles.apt      | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/content/apt/guides/introduction/introduction-to-profiles.apt 
b/content/apt/guides/introduction/introduction-to-profiles.apt
index 3b5e3c65..cddb1405 100644
--- a/content/apt/guides/introduction/introduction-to-profiles.apt
+++ b/content/apt/guides/introduction/introduction-to-profiles.apt
@@ -260,6 +260,30 @@ mvn groupId:artifactId:goal -P 
profile-1,profile-2,?profile-3
 </profiles>
 +---+
   
+  The following profile will be activated when the system property "debug" is 
defined with no value, 
+  or is defined with the value "true".
+
++---+
+<profiles>
+  <profile>
+    <activation>
+      <property>
+        <name>debug</name>
+        <value>true</value>
+      </property>
+    </activation>
+    ...
+  </profile>
+</profiles>
++---+
+
+  To activate this you would type one of those on the command line:
+
+-----
+mvn groupId:artifactId:goal -Ddebug
+mvn groupId:artifactId:goal -Ddebug=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".
 

Reply via email to