You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2017/03/22 21:35:09 UTC

svn commit: r1788163 - /sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration-override.mdtext

Author: sseifert
Date: Wed Mar 22 21:35:08 2017
New Revision: 1788163

URL: http://svn.apache.org/viewvc?rev=1788163&view=rev
Log:
use only property JSON syntax for override strings

Modified:
    sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration-override.mdtext

Modified: sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration-override.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration-override.mdtext?rev=1788163&r1=1788162&r2=1788163&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration-override.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration-override.mdtext Wed Mar 22 21:35:08 2017
@@ -34,12 +34,12 @@ When the syntax `{configName}/{propertyN
 Override string examples with real values:
 
     my-config/property1="value 1"
-    my-config/sub1/property1='value 1'
-    my-config/property1=['value 1','value 2']
+    my-config/sub1/property1="value 1"
+    my-config/property1=["value 1","value 2"]
     my-config/property1=123
-    x.y.z.MyConfig={prop1='value1', prop2=[1,2,3], prop3=true, prop4=1.23}
-    [/content/region1]my-config/property1='value 1'
-    [/content/region1]my-config/sub1={prop1="value 1"}
+    x.y.z.MyConfig={"prop1"="value1","prop2"=[1,2,3],"prop3"=true,"prop4"=1.23}
+    [/content/region1]my-config/property1="value 1"
+    [/content/region1]my-config/sub1={"prop1":"value 1"}
 
 If multiple statements are defined affecting the same content path, configuration name and property name, they overwrite each other. That means the override string defined last wins.
 
@@ -55,8 +55,8 @@ The parameters are defined when starting
 Example:
 
     -Dsling.caconfig.override.my-config/sub1/property1=123
-    -D"sling.caconfig.override.my-config/property1=['value 1','value 2']"
-    -D"sling.caconfig.override.[/content/region1]x.y.z.MyConfig={prop1='value1', prop2=[1,2,3], prop3=true, prop4=1.23}"
+    -D"sling.caconfig.override.my-config/property1=[\"value 1\",\"value 2\"]"
+    -D"sling.caconfig.override.[/content/region1]x.y.z.MyConfig={\"prop1\"=\"value1\",\"prop2\"=[1,2,3],\"prop3\"=true,\"prop4\"=1.23}"
 
 This provider is not active by default, it has to be activated via OSGi configuration ("Apache Sling Context-Aware System Property Configuration Override Provider").