You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/05/20 22:24:22 UTC

[1/2] stratos git commit: Reformatting sample artifacts

Repository: stratos
Updated Branches:
  refs/heads/master 242b27db0 -> a28aceca1


http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/db-group.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/db-group.json b/samples/cartridge-groups/db-group.json
index 3808caf..1ca2cd1 100644
--- a/samples/cartridge-groups/db-group.json
+++ b/samples/cartridge-groups/db-group.json
@@ -1,13 +1,13 @@
 {
-        "name": "db-group",
-        "cartridges": [
-            "mysql",
-            "postgres"
-        ],
-        "dependencies": {
-            "terminationBehaviour": "terminate-all"
-        },
-        "groupScalingEnabled": true
-    }
+    "name": "db-group",
+    "cartridges": [
+        "mysql",
+        "postgres"
+    ],
+    "dependencies": {
+        "terminationBehaviour": "terminate-all"
+    },
+    "groupScalingEnabled": true
+}
 
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/esb-php-group.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/esb-php-group.json b/samples/cartridge-groups/esb-php-group.json
index c702da9..008c735 100644
--- a/samples/cartridge-groups/esb-php-group.json
+++ b/samples/cartridge-groups/esb-php-group.json
@@ -7,7 +7,7 @@
     "dependencies": {
         "startupOrders": [
             {
-                "aliases" : [
+                "aliases": [
                     "cartridge.my-esb",
                     "cartridge.my-php"
                 ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/esb-php-nested-with-esb-php-nested-with-mysql-php.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/esb-php-nested-with-esb-php-nested-with-mysql-php.json b/samples/cartridge-groups/esb-php-nested-with-esb-php-nested-with-mysql-php.json
index fca40f3..2d7972c 100644
--- a/samples/cartridge-groups/esb-php-nested-with-esb-php-nested-with-mysql-php.json
+++ b/samples/cartridge-groups/esb-php-nested-with-esb-php-nested-with-mysql-php.json
@@ -3,15 +3,15 @@
     "groups": [
         {
             "name": "esb-php-nested-with-mysql-php",
-    	    "groups": [
-        	{
-            	    "name": "mysql-php",
-            	    "cartridges": [
-                  	   "mysql",
-                	   "php"
-            	   ]
-        	}
-    	    ],
+            "groups": [
+                {
+                    "name": "mysql-php",
+                    "cartridges": [
+                        "mysql",
+                        "php"
+                    ]
+                }
+            ],
             "cartridges": [
                 "esb",
                 "php"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/group1.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/group1.json b/samples/cartridge-groups/group1.json
index 652e9bd..8fc36dd 100644
--- a/samples/cartridge-groups/group1.json
+++ b/samples/cartridge-groups/group1.json
@@ -10,7 +10,7 @@
             "dependencies": {
                 "startupOrders": [
                     {
-                        "aliases" : [
+                        "aliases": [
                             "cartridge.my-c3-group2",
                             "cartridge.my-c2-group2"
                         ]
@@ -26,7 +26,7 @@
     "dependencies": {
         "startupOrders": [
             {
-                "aliases" : [
+                "aliases": [
                     "cartridge.my-c1-group1",
                     "group.my-group2"
                 ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/group1b.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/group1b.json b/samples/cartridge-groups/group1b.json
index 2ed4b8e..3d71015 100644
--- a/samples/cartridge-groups/group1b.json
+++ b/samples/cartridge-groups/group1b.json
@@ -7,7 +7,7 @@
     "dependencies": {
         "startupOrders": [
             {
-                "aliases" : [
+                "aliases": [
                     "cartridge.my-c3",
                     "cartridge.my-c2"
                 ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/group6c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/group6c3.json b/samples/cartridge-groups/group6c3.json
index a7cc378..58b2096 100644
--- a/samples/cartridge-groups/group6c3.json
+++ b/samples/cartridge-groups/group6c3.json
@@ -10,7 +10,7 @@
                 "terminationBehaviour": "terminate-all"
             }
         }
-        ],
+    ],
     "cartridges": [
         "tomcat2"
     ],

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/group6c6.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/group6c6.json b/samples/cartridge-groups/group6c6.json
index 23b76e9..258aa4a 100644
--- a/samples/cartridge-groups/group6c6.json
+++ b/samples/cartridge-groups/group6c6.json
@@ -7,7 +7,7 @@
     "dependencies": {
         "startupOrders": [
             {
-                "aliases" : [
+                "aliases": [
                     "cartridge.tomcat2",
                     "cartridge.tomcat1"
                 ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/group6c7.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/group6c7.json b/samples/cartridge-groups/group6c7.json
index f693153..19aafb6 100644
--- a/samples/cartridge-groups/group6c7.json
+++ b/samples/cartridge-groups/group6c7.json
@@ -4,21 +4,23 @@
         {
             "name": "group7",
             "cartridges": [
-                "tomcat", "tomcat1"
+                "tomcat",
+                "tomcat1"
             ],
             "dependencies": {
                 "terminationBehaviour": "terminate-none",
                 "startupOrders": []
             }
         },
-	{
+        {
             "name": "group-tom2",
             "dependencies": {
                 "terminationBehaviour": "terminate-none",
                 "startupOrders": []
             },
             "cartridges": [
-                "tomcat2","tomcat3"
+                "tomcat2",
+                "tomcat3"
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/n-level-nesting.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/n-level-nesting.json b/samples/cartridge-groups/n-level-nesting.json
index 8e2b318..dc0e57e 100644
--- a/samples/cartridge-groups/n-level-nesting.json
+++ b/samples/cartridge-groups/n-level-nesting.json
@@ -8,41 +8,41 @@
                 "tomcat"
             ],
             "groups": [
-        	{
-        	    "name": "level-two-group",
-        	    "cartridges": [
-        	        "esb",
-        	        "tomcat"
-        	    ],
+                {
+                    "name": "level-two-group",
+                    "cartridges": [
+                        "esb",
+                        "tomcat"
+                    ],
                     "groups": [
-                	{
-                	    "name": "level-three-group",
-                	    "cartridges": [
-                	        "esb",
-                	        "tomcat"
-                	    ],
-			    "groups": [
-        		        {
-                		    "name": "level-four-group",
-                		    "cartridges": [
-                		        "esb",
-                		        "tomcat"
-                		    ],
-				    "groups": [
-                			{
-                			    "name": "level-five-group",
-                			    "cartridges": [
-                			        "esb",
-                			        "tomcat"
-                			    ]
-               		 		}
-             			    ]
-                		}
-             		    ]
-                	}
-             	    ]
-        	}
-   	     ]
+                        {
+                            "name": "level-three-group",
+                            "cartridges": [
+                                "esb",
+                                "tomcat"
+                            ],
+                            "groups": [
+                                {
+                                    "name": "level-four-group",
+                                    "cartridges": [
+                                        "esb",
+                                        "tomcat"
+                                    ],
+                                    "groups": [
+                                        {
+                                            "name": "level-five-group",
+                                            "cartridges": [
+                                                "esb",
+                                                "tomcat"
+                                            ]
+                                        }
+                                    ]
+                                }
+                            ]
+                        }
+                    ]
+                }
+            ]
         }
     ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridge-groups/tomcat-group.json
----------------------------------------------------------------------
diff --git a/samples/cartridge-groups/tomcat-group.json b/samples/cartridge-groups/tomcat-group.json
index 2bdcfb6..673d6ff 100644
--- a/samples/cartridge-groups/tomcat-group.json
+++ b/samples/cartridge-groups/tomcat-group.json
@@ -5,7 +5,7 @@
             "name": "tomcat-group",
             "cartridges": [
                 "tomcat1",
-		        "tomcat2"
+                "tomcat2"
             ]
         }
     ],

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c1.json b/samples/cartridges/ec2/c1.json
index 13d370e..d468e85 100755
--- a/samples/cartridges/ec2/c1.json
+++ b/samples/cartridges/ec2/c1.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c2.json b/samples/cartridges/ec2/c2.json
index 84cc8ec..5e86486 100755
--- a/samples/cartridges/ec2/c2.json
+++ b/samples/cartridges/ec2/c2.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c3.json b/samples/cartridges/ec2/c3.json
index ab6ba24..8003167 100755
--- a/samples/cartridges/ec2/c3.json
+++ b/samples/cartridges/ec2/c3.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c4.json b/samples/cartridges/ec2/c4.json
index 024edac..0e11cf6 100755
--- a/samples/cartridges/ec2/c4.json
+++ b/samples/cartridges/ec2/c4.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/esb.json b/samples/cartridges/ec2/esb.json
index b44b96d..bd8c618 100755
--- a/samples/cartridges/ec2/esb.json
+++ b/samples/cartridges/ec2/esb.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/php.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/php.json b/samples/cartridges/ec2/php.json
index 73fe441..204711c 100755
--- a/samples/cartridges/ec2/php.json
+++ b/samples/cartridges/ec2/php.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/tomcat.json b/samples/cartridges/ec2/tomcat.json
index 588650c..9819144 100755
--- a/samples/cartridges/ec2/tomcat.json
+++ b/samples/cartridges/ec2/tomcat.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/tomcat1.json b/samples/cartridges/ec2/tomcat1.json
index 9189d66..13198a1 100755
--- a/samples/cartridges/ec2/tomcat1.json
+++ b/samples/cartridges/ec2/tomcat1.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/ec2/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/tomcat2.json b/samples/cartridges/ec2/tomcat2.json
index 8923998..e89ff69 100755
--- a/samples/cartridges/ec2/tomcat2.json
+++ b/samples/cartridges/ec2/tomcat2.json
@@ -20,7 +20,6 @@
         {
             "type": "ec2",
             "imageId": "ap-southeast-1/ami-3c0f5d6e",
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c1.json b/samples/cartridges/kubernetes/c1.json
index 19ac4c0..7ecb08e 100755
--- a/samples/cartridges/kubernetes/c1.json
+++ b/samples/cartridges/kubernetes/c1.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c2.json b/samples/cartridges/kubernetes/c2.json
index 8caa83a..d3180e5 100755
--- a/samples/cartridges/kubernetes/c2.json
+++ b/samples/cartridges/kubernetes/c2.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c3.json b/samples/cartridges/kubernetes/c3.json
index dedb0f6..fecb50b 100755
--- a/samples/cartridges/kubernetes/c3.json
+++ b/samples/cartridges/kubernetes/c3.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c4.json b/samples/cartridges/kubernetes/c4.json
index efc660a..349f8b3 100755
--- a/samples/cartridges/kubernetes/c4.json
+++ b/samples/cartridges/kubernetes/c4.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/esb.json b/samples/cartridges/kubernetes/esb.json
index 2b775a8..c5cb500 100755
--- a/samples/cartridges/kubernetes/esb.json
+++ b/samples/cartridges/kubernetes/esb.json
@@ -14,19 +14,19 @@
             "proxyPort": "8280"
         }
     ],
-    "deployment":{
-       "baseDir":"/var/www"
+    "deployment": {
+        "baseDir": "/var/www"
     },
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"kubernetes",
-            "imageId":"stratos/cartridge:4.1.0-alpha",
-            "networkInterfaces":[
-            {
-               "networkUuid":""
-            }
+            "type": "kubernetes",
+            "imageId": "stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces": [
+                {
+                    "networkUuid": ""
+                }
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat.json b/samples/cartridges/kubernetes/tomcat.json
index 8441233..47208ab 100755
--- a/samples/cartridges/kubernetes/tomcat.json
+++ b/samples/cartridges/kubernetes/tomcat.json
@@ -7,7 +7,7 @@
     "description": "Tomcat 7 Cartridge",
     "version": "7",
     "multiTenant": "false",
-    "loadBalancingIPType" : "public",
+    "loadBalancingIPType": "public",
     "portMapping": [
         {
             "protocol": "http",
@@ -15,16 +15,16 @@
             "proxyPort": "8281"
         }
     ],
-    "deployment":{
-           "baseDir":"/opt/tomcat/webapps"
+    "deployment": {
+        "baseDir": "/opt/tomcat/webapps"
     },
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"kubernetes",
-            "imageId":"stratos/tomcat:4.1.0-beta",
-            "networkInterfaces":[
+            "type": "kubernetes",
+            "imageId": "stratos/tomcat:4.1.0-beta",
+            "networkInterfaces": [
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat1.json b/samples/cartridges/kubernetes/tomcat1.json
index d3a68c4..cf32329 100755
--- a/samples/cartridges/kubernetes/tomcat1.json
+++ b/samples/cartridges/kubernetes/tomcat1.json
@@ -14,19 +14,19 @@
             "proxyPort": "8280"
         }
     ],
-    "deployment":{
-           "baseDir":"/var/www"
+    "deployment": {
+        "baseDir": "/var/www"
     },
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"kubernetes",
-            "imageId":"stratos/cartridge:4.1.0-alpha",
-            "networkInterfaces":[
-            {
-                "networkUuid":""
-            }
+            "type": "kubernetes",
+            "imageId": "stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces": [
+                {
+                    "networkUuid": ""
+                }
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat2.json b/samples/cartridges/kubernetes/tomcat2.json
index 46ee867..b0175e8 100755
--- a/samples/cartridges/kubernetes/tomcat2.json
+++ b/samples/cartridges/kubernetes/tomcat2.json
@@ -14,19 +14,19 @@
             "proxyPort": "8280"
         }
     ],
-    "deployment":{
-           "baseDir":"/var/www"
+    "deployment": {
+        "baseDir": "/var/www"
     },
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"kubernetes",
-            "imageId":"stratos/cartridge:4.1.0-alpha",
-            "networkInterfaces":[
-            {
-                "networkUuid":""
-            }
+            "type": "kubernetes",
+            "imageId": "stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces": [
+                {
+                    "networkUuid": ""
+                }
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/tomcat3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat3.json b/samples/cartridges/kubernetes/tomcat3.json
index e4d39f9..f7293cc 100755
--- a/samples/cartridges/kubernetes/tomcat3.json
+++ b/samples/cartridges/kubernetes/tomcat3.json
@@ -14,16 +14,16 @@
             "proxyPort": "8280"
         }
     ],
-    "deployment":{
-           "baseDir":"/opt/tomcat/webapps"
+    "deployment": {
+        "baseDir": "/opt/tomcat/webapps"
     },
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"kubernetes",
-            "imageId":"chamilad/tomcat:4.1.0-beta",
-            "networkInterfaces":[
+            "type": "kubernetes",
+            "imageId": "chamilad/tomcat:4.1.0-beta",
+            "networkInterfaces": [
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/kubernetes/wso2-is.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/wso2-is.json b/samples/cartridges/kubernetes/wso2-is.json
index 8b4bfe7..b3b2f20 100644
--- a/samples/cartridges/kubernetes/wso2-is.json
+++ b/samples/cartridges/kubernetes/wso2-is.json
@@ -14,13 +14,13 @@
             "proxyPort": "8280"
         }
     ],
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"kubernetes",
-            "imageId":"chamilad/wso2is:4.1.0-beta",
-            "networkInterfaces":[
+            "type": "kubernetes",
+            "imageId": "chamilad/wso2is:4.1.0-beta",
+            "networkInterfaces": [
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c1.json b/samples/cartridges/mock/c1.json
index 19ac4c0..7ecb08e 100755
--- a/samples/cartridges/mock/c1.json
+++ b/samples/cartridges/mock/c1.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c2.json b/samples/cartridges/mock/c2.json
index 8caa83a..d3180e5 100755
--- a/samples/cartridges/mock/c2.json
+++ b/samples/cartridges/mock/c2.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c3.json b/samples/cartridges/mock/c3.json
index dedb0f6..fecb50b 100755
--- a/samples/cartridges/mock/c3.json
+++ b/samples/cartridges/mock/c3.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c4.json b/samples/cartridges/mock/c4.json
index efc660a..349f8b3 100755
--- a/samples/cartridges/mock/c4.json
+++ b/samples/cartridges/mock/c4.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/esb.json b/samples/cartridges/mock/esb.json
index e96b9c9..f9b5c6f 100755
--- a/samples/cartridges/mock/esb.json
+++ b/samples/cartridges/mock/esb.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",
@@ -42,5 +41,9 @@
             ]
         }
     ],
-    "metadataKeys":["server_ip","username","password"]
+    "metadataKeys": [
+        "server_ip",
+        "username",
+        "password"
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/mysql.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/mysql.json b/samples/cartridges/mock/mysql.json
index 7f4415e..606c5f5 100755
--- a/samples/cartridges/mock/mysql.json
+++ b/samples/cartridges/mock/mysql.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",
@@ -42,5 +41,9 @@
             ]
         }
     ],
-    "metadataKeys":["server_ip","username","password"]
+    "metadataKeys": [
+        "server_ip",
+        "username",
+        "password"
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/postgres.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/postgres.json b/samples/cartridges/mock/postgres.json
index 5bc4bdb..605a8f2 100755
--- a/samples/cartridges/mock/postgres.json
+++ b/samples/cartridges/mock/postgres.json
@@ -25,7 +25,6 @@
                     "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
                 }
             ],
-
             "property": [
                 {
                     "name": "instanceType",
@@ -42,5 +41,9 @@
             ]
         }
     ],
-    "metadataKeys":["server_ip","username","password"]
+    "metadataKeys": [
+        "server_ip",
+        "username",
+        "password"
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/stratos-lb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/stratos-lb.json b/samples/cartridges/mock/stratos-lb.json
index 216eae3..2553161 100755
--- a/samples/cartridges/mock/stratos-lb.json
+++ b/samples/cartridges/mock/stratos-lb.json
@@ -36,6 +36,8 @@
             ]
         }
     ],
-  "metadataKeys":["writeparam3","writeparam4"]
-    
+    "metadataKeys": [
+        "writeparam3",
+        "writeparam4"
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/tomcat.json b/samples/cartridges/mock/tomcat.json
index 0ea1217..19b36a3 100755
--- a/samples/cartridges/mock/tomcat.json
+++ b/samples/cartridges/mock/tomcat.json
@@ -41,6 +41,7 @@
             ]
         }
     ],
-    "metadataKeys":["url"]
-    
+    "metadataKeys": [
+        "url"
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/tomcat2.json b/samples/cartridges/mock/tomcat2.json
index 1f8811d..dea114d 100755
--- a/samples/cartridges/mock/tomcat2.json
+++ b/samples/cartridges/mock/tomcat2.json
@@ -41,5 +41,8 @@
             ]
         }
     ],
- "metadataKeys":["writeparam5","writeparam6"]
+    "metadataKeys": [
+        "writeparam5",
+        "writeparam6"
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/tomcat3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/tomcat3.json b/samples/cartridges/mock/tomcat3.json
index d6dc7ee..cdc44f4 100755
--- a/samples/cartridges/mock/tomcat3.json
+++ b/samples/cartridges/mock/tomcat3.json
@@ -14,16 +14,16 @@
             "proxyPort": "8280"
         }
     ],
-    "deployment":{
-           "baseDir":"/opt/tomcat/webapps"
+    "deployment": {
+        "baseDir": "/opt/tomcat/webapps"
     },
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"mock",
-            "imageId":"not-needed",
-            "networkInterfaces":[
+            "type": "mock",
+            "imageId": "not-needed",
+            "networkInterfaces": [
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/mock/wso2-is.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/wso2-is.json b/samples/cartridges/mock/wso2-is.json
index e71ed2d..2933227 100644
--- a/samples/cartridges/mock/wso2-is.json
+++ b/samples/cartridges/mock/wso2-is.json
@@ -14,13 +14,13 @@
             "proxyPort": "8280"
         }
     ],
-    "iaasProvider":[
+    "iaasProvider": [
         {
-            "type":"mock",
-            "imageId":"not-needed",
-            "networkInterfaces":[
+            "type": "mock",
+            "imageId": "not-needed",
+            "networkInterfaces": [
             ],
-            "property":[
+            "property": [
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/openstack/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/tomcat.json b/samples/cartridges/openstack/tomcat.json
index c1965f7..7e4ca32 100755
--- a/samples/cartridges/openstack/tomcat.json
+++ b/samples/cartridges/openstack/tomcat.json
@@ -19,27 +19,26 @@
     "iaasProvider": [
         {
             "type": "openstack",
-            "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",      
-	    "networkInterfaces":[
-        	    {
-        	       "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
-	            }
-        	 ],
-	     "property": [
-	    {
-               "name":"instanceType",
-               "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
-            },
-            {
-               "name":"keyPair",
-               "value":"vishanth-key"
-            },
-            {
-               "name":"securityGroups",
-               "value":"default"
-            }
+            "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",
+            "networkInterfaces": [
+                {
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
             ]
-
         }
     ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/openstack/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/tomcat1.json b/samples/cartridges/openstack/tomcat1.json
index 2c3627f..ccc3547 100755
--- a/samples/cartridges/openstack/tomcat1.json
+++ b/samples/cartridges/openstack/tomcat1.json
@@ -20,25 +20,24 @@
         {
             "type": "openstack",
             "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",
-	    "networkInterfaces":[
-        	    {
-               	    "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
-	            }
-        	 ],	
+            "networkInterfaces": [
+                {
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
             "property": [
-            {
-               "name":"instanceType",
-               "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
-            },
-            {
-               "name":"keyPair",
-               "value":"vishanth-key"
-            },
-            {
-               "name":"securityGroups",
-               "value":"default"
-            }
-
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/cartridges/openstack/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/tomcat2.json b/samples/cartridges/openstack/tomcat2.json
index f55ab09..02f23a9 100755
--- a/samples/cartridges/openstack/tomcat2.json
+++ b/samples/cartridges/openstack/tomcat2.json
@@ -20,25 +20,24 @@
         {
             "type": "openstack",
             "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",
-            "networkInterfaces":[
-    	        {
-               	       "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
-	        }
-              ],
+            "networkInterfaces": [
+                {
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
             "property": [
-            {
-               "name":"instanceType",
-               "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
-            },
-            {
-               "name":"keyPair",
-               "value":"vishanth-key"
-            },
-            {
-               "name":"securityGroups",
-               "value":"default"
-            }
-
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
             ]
         }
     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/deployment-policies/deployment-policy-1.json
----------------------------------------------------------------------
diff --git a/samples/deployment-policies/deployment-policy-1.json b/samples/deployment-policies/deployment-policy-1.json
index 5e5b1b2..a434226 100644
--- a/samples/deployment-policies/deployment-policy-1.json
+++ b/samples/deployment-policies/deployment-policy-1.json
@@ -1,15 +1,15 @@
 {
-   "id": "deployment-policy-1",
-   "networkPartitions": [
-      {
-         "id": "network-partition-1",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "partitionMax": 20
-            }
-         ]
-      }
-   ]
+    "id": "deployment-policy-1",
+    "networkPartitions": [
+        {
+            "id": "network-partition-1",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "partitionMax": 20
+                }
+            ]
+        }
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/deployment-policies/deployment-policy-2.json
----------------------------------------------------------------------
diff --git a/samples/deployment-policies/deployment-policy-2.json b/samples/deployment-policies/deployment-policy-2.json
index 607af7a..c62eda7 100644
--- a/samples/deployment-policies/deployment-policy-2.json
+++ b/samples/deployment-policies/deployment-policy-2.json
@@ -1,29 +1,29 @@
 {
-   "id": "deployment-policy-2",
-   "networkPartitions": [
-      {
-         "id": "network-partition-1",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "partitionMax": 5
-            }
-         ]
-      },
-      {
-         "id": "network-partition-2",
-         "partitionAlgo": "round-robin",
-         "partitions": [
-            {
-               "id": "network-partition-2-partition-1",
-               "partitionMax": 5
-            },
-            {
-               "id": "network-partition-2-partition-2",
-               "partitionMax": 5
-            }
-         ]
-      }
-   ]
+    "id": "deployment-policy-2",
+    "networkPartitions": [
+        {
+            "id": "network-partition-1",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "partitionMax": 5
+                }
+            ]
+        },
+        {
+            "id": "network-partition-2",
+            "partitionAlgo": "round-robin",
+            "partitions": [
+                {
+                    "id": "network-partition-2-partition-1",
+                    "partitionMax": 5
+                },
+                {
+                    "id": "network-partition-2-partition-2",
+                    "partitionMax": 5
+                }
+            ]
+        }
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/deployment-policies/deployment-policy-3.json
----------------------------------------------------------------------
diff --git a/samples/deployment-policies/deployment-policy-3.json b/samples/deployment-policies/deployment-policy-3.json
index dad0be3..604e87e 100644
--- a/samples/deployment-policies/deployment-policy-3.json
+++ b/samples/deployment-policies/deployment-policy-3.json
@@ -1,15 +1,15 @@
 {
-   "id": "deployment-policy-3",
-   "networkPartitions": [
-      {
-         "id": "network-partition-3",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "partitionMax": 5
-            }
-         ]
-      }
-   ]
+    "id": "deployment-policy-3",
+    "networkPartitions": [
+        {
+            "id": "network-partition-3",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "partitionMax": 5
+                }
+            ]
+        }
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/deployment-policies/deployment-policy-4.json
----------------------------------------------------------------------
diff --git a/samples/deployment-policies/deployment-policy-4.json b/samples/deployment-policies/deployment-policy-4.json
index 60c2952..f0202ef 100644
--- a/samples/deployment-policies/deployment-policy-4.json
+++ b/samples/deployment-policies/deployment-policy-4.json
@@ -1,49 +1,49 @@
 {
-   "id": "deployment-policy-4",
-   "networkPartitions": [
-      {
-         "id": "network-partition-1",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "partitionMax": 20
-            }
-         ]
-      },
-      {
-         "id": "network-partition-2",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "network-partition-2-partition-1",
-               "partitionMax": 20
-            },
-            {
-               "id": "network-partition-2-partition-2",
-               "partitionMax": 20
-            }
-         ]
-      },
-      {
-         "id": "network-partition-3",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "partitionMax": 20
-            }
-         ]
-      },
-      {
-         "id": "network-partition-4",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "partitionMax": 20
-            }
-         ]
-      }
-   ]
+    "id": "deployment-policy-4",
+    "networkPartitions": [
+        {
+            "id": "network-partition-1",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "partitionMax": 20
+                }
+            ]
+        },
+        {
+            "id": "network-partition-2",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "network-partition-2-partition-1",
+                    "partitionMax": 20
+                },
+                {
+                    "id": "network-partition-2-partition-2",
+                    "partitionMax": 20
+                }
+            ]
+        },
+        {
+            "id": "network-partition-3",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "partitionMax": 20
+                }
+            ]
+        },
+        {
+            "id": "network-partition-4",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "partitionMax": 20
+                }
+            ]
+        }
+    ]
 }


[2/2] stratos git commit: Reformatting sample artifacts

Posted by im...@apache.org.
Reformatting sample artifacts


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/a28aceca
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/a28aceca
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/a28aceca

Branch: refs/heads/master
Commit: a28aceca1fbf054ec077e9392b3ac881d7187cd9
Parents: 242b27d
Author: Imesh Gunaratne <im...@apache.org>
Authored: Thu May 21 02:05:21 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Thu May 21 02:05:21 2015 +0530

----------------------------------------------------------------------
 .../application-policy-1.json                   |   6 +-
 .../application-policy-2.json                   |   6 +-
 .../application-policy-3.json                   |   6 +-
 .../application-policy-4.json                   |   6 +-
 .../application-policy-5.json                   |   6 +-
 .../artifacts/application.json                  |  11 +-
 .../wordpress-app/artifacts/application.json    |  10 +-
 .../artifacts/application.json                  |  60 ++--
 .../artifacts/application.json                  | 166 ++++-----
 .../artifacts/application.json                  | 354 +++++++++----------
 .../artifacts/application.json                  |  36 +-
 .../artifacts/application.json                  |  58 +--
 .../artifacts/deployment-policy.json            |  26 +-
 .../artifacts/application-signup.json           |  32 +-
 .../artifacts/application.json                  |  42 +--
 .../artifacts/domain-mappings.json              |   6 +-
 .../artifacts/application.json                  |  26 +-
 .../sample-groups/artifacts/application.json    |  40 +--
 .../artifacts/application.json                  |  46 +--
 .../group-scaling-v1/artifacts/application.json |  22 +-
 .../artifacts/application.json                  |  12 +-
 .../artifacts/application-signup.json           |  32 +-
 .../artifacts/domain-mappings.json              |   6 +-
 .../autoscaling-policy-1.json                   |  22 +-
 samples/cartridge-groups/db-group.json          |  20 +-
 samples/cartridge-groups/esb-php-group.json     |   2 +-
 ...sted-with-esb-php-nested-with-mysql-php.json |  18 +-
 samples/cartridge-groups/group1.json            |   4 +-
 samples/cartridge-groups/group1b.json           |   2 +-
 samples/cartridge-groups/group6c3.json          |   2 +-
 samples/cartridge-groups/group6c6.json          |   2 +-
 samples/cartridge-groups/group6c7.json          |   8 +-
 samples/cartridge-groups/n-level-nesting.json   |  68 ++--
 samples/cartridge-groups/tomcat-group.json      |   2 +-
 samples/cartridges/ec2/c1.json                  |   1 -
 samples/cartridges/ec2/c2.json                  |   1 -
 samples/cartridges/ec2/c3.json                  |   1 -
 samples/cartridges/ec2/c4.json                  |   1 -
 samples/cartridges/ec2/esb.json                 |   1 -
 samples/cartridges/ec2/php.json                 |   1 -
 samples/cartridges/ec2/tomcat.json              |   1 -
 samples/cartridges/ec2/tomcat1.json             |   1 -
 samples/cartridges/ec2/tomcat2.json             |   1 -
 samples/cartridges/kubernetes/c1.json           |   1 -
 samples/cartridges/kubernetes/c2.json           |   1 -
 samples/cartridges/kubernetes/c3.json           |   1 -
 samples/cartridges/kubernetes/c4.json           |   1 -
 samples/cartridges/kubernetes/esb.json          |  20 +-
 samples/cartridges/kubernetes/tomcat.json       |  16 +-
 samples/cartridges/kubernetes/tomcat1.json      |  20 +-
 samples/cartridges/kubernetes/tomcat2.json      |  20 +-
 samples/cartridges/kubernetes/tomcat3.json      |  14 +-
 samples/cartridges/kubernetes/wso2-is.json      |  10 +-
 samples/cartridges/mock/c1.json                 |   1 -
 samples/cartridges/mock/c2.json                 |   1 -
 samples/cartridges/mock/c3.json                 |   1 -
 samples/cartridges/mock/c4.json                 |   1 -
 samples/cartridges/mock/esb.json                |   7 +-
 samples/cartridges/mock/mysql.json              |   7 +-
 samples/cartridges/mock/postgres.json           |   7 +-
 samples/cartridges/mock/stratos-lb.json         |   6 +-
 samples/cartridges/mock/tomcat.json             |   5 +-
 samples/cartridges/mock/tomcat2.json            |   5 +-
 samples/cartridges/mock/tomcat3.json            |  14 +-
 samples/cartridges/mock/wso2-is.json            |  10 +-
 samples/cartridges/openstack/tomcat.json        |  39 +-
 samples/cartridges/openstack/tomcat1.json       |  35 +-
 samples/cartridges/openstack/tomcat2.json       |  35 +-
 .../deployment-policy-1.json                    |  26 +-
 .../deployment-policy-2.json                    |  54 +--
 .../deployment-policy-3.json                    |  26 +-
 .../deployment-policy-4.json                    |  94 ++---
 72 files changed, 824 insertions(+), 828 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-1.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-1.json b/samples/application-policies/application-policy-1.json
index deeb695..417b94f 100644
--- a/samples/application-policies/application-policy-1.json
+++ b/samples/application-policies/application-policy-1.json
@@ -1,10 +1,10 @@
 {
     "id": "application-policy-1",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "key-1",
             "value": "value-1"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-2.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-2.json b/samples/application-policies/application-policy-2.json
index b18751c..db56968 100644
--- a/samples/application-policies/application-policy-2.json
+++ b/samples/application-policies/application-policy-2.json
@@ -1,10 +1,10 @@
 {
     "id": "application-policy-2",
-    "algorithm":"all-at-once",
-    "networkPartitions":[
+    "algorithm": "all-at-once",
+    "networkPartitions": [
         "network-partition-3"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "key-1",
             "value": "value-1"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-3.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-3.json b/samples/application-policies/application-policy-3.json
index 704ba2c..476465b 100644
--- a/samples/application-policies/application-policy-3.json
+++ b/samples/application-policies/application-policy-3.json
@@ -1,14 +1,14 @@
 {
     "id": "application-policy-3",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1",
         "network-partition-2",
         "network-partition-3",
         "network-partition-4",
         "network-partition-5"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "network-partition-groups",
             "value": "network-partition-1|network-partition-2, network-partition-3, network-partition-4|network-partition-5"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-4.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-4.json b/samples/application-policies/application-policy-4.json
index 701aec1..eb9002f 100644
--- a/samples/application-policies/application-policy-4.json
+++ b/samples/application-policies/application-policy-4.json
@@ -1,13 +1,13 @@
 {
     "id": "application-policy-4",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1",
         "network-partition-2",
         "network-partition-3",
         "network-partition-4"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "networkPartitionGroups",
             "value": "network-partition-1|network-partition-2,network-partition-3|network-partition-4"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/application-policies/application-policy-5.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-5.json b/samples/application-policies/application-policy-5.json
index 4e1a971..cb564ae 100644
--- a/samples/application-policies/application-policy-5.json
+++ b/samples/application-policies/application-policy-5.json
@@ -1,11 +1,11 @@
 {
     "id": "application-policy-5",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
+    "algorithm": "one-after-another",
+    "networkPartitions": [
         "network-partition-1",
         "network-partition-2"
     ],
-    "properties":[
+    "properties": [
         {
             "name": "networkPartitionGroups",
             "value": "network-partition-1,network-partition-2"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/complex/tomcat-single-signon/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/complex/tomcat-single-signon/artifacts/application.json b/samples/applications/complex/tomcat-single-signon/artifacts/application.json
index 2f237c1..0147910 100644
--- a/samples/applications/complex/tomcat-single-signon/artifacts/application.json
+++ b/samples/applications/complex/tomcat-single-signon/artifacts/application.json
@@ -2,7 +2,6 @@
     "applicationId": "tomcat-single-signon",
     "alias": "tomcat-single-signon",
     "components": {
-
         "cartridges": [
             {
                 "type": "tomcat3",
@@ -12,11 +11,11 @@
                     "alias": "mytomcat3",
                     "autoscalingPolicy": "autoscaling-policy-1",
                     "deploymentPolicy": "deployment-policy-3",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/chamilad/travelocity-sample",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/chamilad/travelocity-sample",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             },

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/complex/wordpress-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/complex/wordpress-app/artifacts/application.json b/samples/applications/complex/wordpress-app/artifacts/application.json
index 4220fe2..96f3426 100644
--- a/samples/applications/complex/wordpress-app/artifacts/application.json
+++ b/samples/applications/complex/wordpress-app/artifacts/application.json
@@ -15,7 +15,7 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-mysql",
-			    "deploymentPolicy":"deployment-policy-2",
+                            "deploymentPolicy": "deployment-policy-2",
                             "autoscalingPolicy": "autoscaling-policy-1"
                         }
                     },
@@ -25,11 +25,11 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-php",
-                            "deploymentPolicy":"deployment-policy-2",
+                            "deploymentPolicy": "deployment-policy-2",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/complex-app-with-lb/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/complex-app-with-lb/artifacts/application.json b/samples/applications/nested/complex-app-with-lb/artifacts/application.json
index 3542ee8..7561a75 100644
--- a/samples/applications/nested/complex-app-with-lb/artifacts/application.json
+++ b/samples/applications/nested/complex-app-with-lb/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group7",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group7",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -42,11 +42,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group6",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -57,7 +57,7 @@
                 "alias": "my-group8",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group9",
@@ -72,11 +72,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group9",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -91,11 +91,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group8",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -110,7 +110,7 @@
                 "subscribableInfo": {
                     "alias": "my-stratos-lb",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-1"
+                    "deploymentPolicy": "deployment-policy-1"
                 }
             },
             {
@@ -120,12 +120,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                       "privateRepo":false,
-                       "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                       "repoUsername":"",
-                       "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -133,7 +133,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "cartridge.my-tomcat",
                         "cartridge.my-stratos-lb",
                         "group.my-group6",

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json b/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
index da8e512..dc32d0f 100644
--- a/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
+++ b/samples/applications/nested/esb-php-nested-with-esb-php-nested-with-mysql-php-app/artifacts/application.json
@@ -8,74 +8,74 @@
                 "alias": "my-esb-php-nested-with-esb-php-nested-with-mysql-php",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 2,
-	        "groups": [
-	            {
-        	        "name": "esb-php-nested-with-mysql-php",
-        	        "alias": "my-esb-php-nested-with-mysql-php",
-        	        "groupMinInstances": 1,
-        	        "groupMaxInstances": 2,
-			"groups": [
-                    	    {
-                        	"name": "mysql-php",
-                        	"alias": "my-mysql-php",
-                        	"groupMinInstances": 1,
-                        	"groupMaxInstances": 2,
-                        	"cartridges": [
-                        	    {
-                        	        "type": "mysql",
-                        	        "cartridgeMin": 2,
-                        	        "cartridgeMax": 5,
-                        	        "subscribableInfo": {
-                        	            "alias": "my-mysql-php-mysql",
-                        	            "deploymentPolicy":"deployment-policy-1",
-                        	            "autoscalingPolicy": "autoscaling-policy-1"
-                        	        }
-                        	    },
-                        	    {
-                        	        "type": "php",
-                        	        "cartridgeMin": 2,
-                        	        "cartridgeMax": 5,
-                        	        "subscribableInfo": {
-                        	            "alias": "my-mysql-php-php",
-                        	            "deploymentPolicy":"deployment-policy-1",
-                        	            "autoscalingPolicy": "autoscaling-policy-1",
-                        	            "artifactRepository":{
-                        	               "privateRepo":false,
-                        	               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
-                        	            }
-                        	        }
-                        	    }
-                        	]
-                    	    }
-                	],
-	                "cartridges": [
-	                    {
-        	                "type": "esb",
-                	        "cartridgeMin": 2,
-                	        "cartridgeMax": 5,
-                	        "subscribableInfo": {
-                	            "alias": "my-esb-php-nested-with-mysql-php-esb",
-                	            "deploymentPolicy":"deployment-policy-1",
-                	            "autoscalingPolicy": "autoscaling-policy-1"
-                	        }
-                	    },
-                	    {
-                	        "type": "php",
-                	        "cartridgeMin": 2,
-                	        "cartridgeMax": 5,
-                	        "subscribableInfo": {
-                	            "alias": "my-esb-php-nested-with-mysql-php-php",
-                	            "deploymentPolicy":"deployment-policy-1",
-                	            "autoscalingPolicy": "autoscaling-policy-1",
-                	            "artifactRepository":{
-                	               "privateRepo":false,
-                	               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
-                	            }
-                	        }
-                	    }
-                	]
-            	    }
-        	],
+                "groups": [
+                    {
+                        "name": "esb-php-nested-with-mysql-php",
+                        "alias": "my-esb-php-nested-with-mysql-php",
+                        "groupMinInstances": 1,
+                        "groupMaxInstances": 2,
+                        "groups": [
+                            {
+                                "name": "mysql-php",
+                                "alias": "my-mysql-php",
+                                "groupMinInstances": 1,
+                                "groupMaxInstances": 2,
+                                "cartridges": [
+                                    {
+                                        "type": "mysql",
+                                        "cartridgeMin": 2,
+                                        "cartridgeMax": 5,
+                                        "subscribableInfo": {
+                                            "alias": "my-mysql-php-mysql",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                        }
+                                    },
+                                    {
+                                        "type": "php",
+                                        "cartridgeMin": 2,
+                                        "cartridgeMax": 5,
+                                        "subscribableInfo": {
+                                            "alias": "my-mysql-php-php",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "autoscalingPolicy": "autoscaling-policy-1",
+                                            "artifactRepository": {
+                                                "privateRepo": false,
+                                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
+                                            }
+                                        }
+                                    }
+                                ]
+                            }
+                        ],
+                        "cartridges": [
+                            {
+                                "type": "esb",
+                                "cartridgeMin": 2,
+                                "cartridgeMax": 5,
+                                "subscribableInfo": {
+                                    "alias": "my-esb-php-nested-with-mysql-php-esb",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                }
+                            },
+                            {
+                                "type": "php",
+                                "cartridgeMin": 2,
+                                "cartridgeMax": 5,
+                                "subscribableInfo": {
+                                    "alias": "my-esb-php-nested-with-mysql-php-php",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "autoscalingPolicy": "autoscaling-policy-1",
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
+                                    }
+                                }
+                            }
+                        ]
+                    }
+                ],
                 "cartridges": [
                     {
                         "type": "esb",
@@ -83,7 +83,7 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-esb-php-nested-with-esb-php-nested-with-mysql-php-esb",
-			    "deploymentPolicy":"deployment-policy-1",
+                            "deploymentPolicy": "deployment-policy-1",
                             "autoscalingPolicy": "autoscaling-policy-1"
                         }
                     },
@@ -93,45 +93,45 @@
                         "cartridgeMax": 5,
                         "subscribableInfo": {
                             "alias": "my-esb-php-nested-with-esb-php-nested-with-mysql-php-php",
-			    "deploymentPolicy":"deployment-policy-1",
+                            "deploymentPolicy": "deployment-policy-1",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git"
                             }
                         }
                     }
                 ]
             }
         ],
-        "cartridges" : [
+        "cartridges": [
             {
                 "type": "esb",
                 "cartridgeMin": 2,
                 "cartridgeMax": 5,
                 "subscribableInfo": {
                     "alias": "my-esb",
-		    "deploymentPolicy":"deployment-policy-1",
+                    "deploymentPolicy": "deployment-policy-1",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
                     }
                 }
             }
         ],
-        "cartridges" : [
+        "cartridges": [
             {
                 "type": "php",
                 "cartridgeMin": 2,
                 "cartridgeMax": 5,
                 "subscribableInfo": {
                     "alias": "my-php",
-                    "deploymentPolicy":"deployment-policy-1",
+                    "deploymentPolicy": "deployment-policy-1",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
                     }
                 }
             }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json b/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
index 1fa30c0..ade0063 100644
--- a/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
+++ b/samples/applications/nested/five-levels-nested-groups-app/artifacts/application.json
@@ -1,184 +1,184 @@
 {
-   "alias":"n-level-nesting-app",
-   "applicationId":"n-level-nesting",
-   "components":{
-      "groups":[
-         {
-            "name":"n-level-nesting",
-            "groupMinInstances":1,
-            "groupMaxInstances":1,
-            "alias":"n-level-nesting-group",
-            "groups":[
-               {
-                  "name":"level-one-group",
-                  "groupMinInstances":1,
-                  "groupMaxInstances":1,
-                  "alias":"level-one-group",
-                  "cartridges":[
-                     {
-                        "cartridgeMin":1,
-                        "cartridgeMax":10000000,
-                        "type":"esb",
-                        "subscribableInfo":{
-                           "alias":"level-one-group-esb",
-                           "deploymentPolicy":"deployment-policy-1",
-                           "autoscalingPolicy":"autoscaling-policy-1"
-                        }
-                     },
-                     {
-                        "cartridgeMin":1,
-                        "cartridgeMax":10000000,
-                        "type":"tomcat",
-                        "subscribableInfo":{
-                           "alias":"level-one-group-tomcat",
-                           "deploymentPolicy":"deployment-policy-1",
-                           "artifactRepository":{
-                              "privateRepo":false,
-                              "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                           },
-                           "autoscalingPolicy":"autoscaling-policy-1"
-                        }
-                     }
-                  ],
-                  "groups":[
-                     {
-                        "name":"level-two-group",
-                        "groupMinInstances":1,
-                        "groupMaxInstances":1,
-                        "alias":"level-two-group",
-                        "cartridges":[
-                           {
-                              "cartridgeMin":1,
-                              "cartridgeMax":10000000,
-                              "type":"esb",
-                              "subscribableInfo":{
-                                 "alias":"level-two-group-esb",
-                                 "deploymentPolicy":"deployment-policy-1",
-                                 "autoscalingPolicy":"autoscaling-policy-1"
-                              }
-                           },
-                           {
-                              "cartridgeMin":1,
-                              "cartridgeMax":10000000,
-                              "type":"tomcat",
-                              "subscribableInfo":{
-                                 "alias":"level-two-group-tomcat",
-                                 "deploymentPolicy":"deployment-policy-1",
-                                 "artifactRepository":{
-                                    "privateRepo":false,
-                                    "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                 },
-                                 "autoscalingPolicy":"autoscaling-policy-1"
-                              }
-                           }
+    "alias": "n-level-nesting-app",
+    "applicationId": "n-level-nesting",
+    "components": {
+        "groups": [
+            {
+                "name": "n-level-nesting",
+                "groupMinInstances": 1,
+                "groupMaxInstances": 1,
+                "alias": "n-level-nesting-group",
+                "groups": [
+                    {
+                        "name": "level-one-group",
+                        "groupMinInstances": 1,
+                        "groupMaxInstances": 1,
+                        "alias": "level-one-group",
+                        "cartridges": [
+                            {
+                                "cartridgeMin": 1,
+                                "cartridgeMax": 10000000,
+                                "type": "esb",
+                                "subscribableInfo": {
+                                    "alias": "level-one-group-esb",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                }
+                            },
+                            {
+                                "cartridgeMin": 1,
+                                "cartridgeMax": 10000000,
+                                "type": "tomcat",
+                                "subscribableInfo": {
+                                    "alias": "level-one-group-tomcat",
+                                    "deploymentPolicy": "deployment-policy-1",
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                    },
+                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                }
+                            }
                         ],
-                        "groups":[
-                           {
-                              "name":"level-three-group",
-                              "groupMinInstances":1,
-                              "groupMaxInstances":1,
-                              "alias":"level-three-group",
-                              "cartridges":[
-                                 {
-                                    "cartridgeMin":1,
-                                    "cartridgeMax":10000000,
-                                    "type":"esb",
-                                    "subscribableInfo":{
-                                       "alias":"level-three-group-esb",
-                                       "deploymentPolicy":"deployment-policy-1",
-                                       "autoscalingPolicy":"autoscaling-policy-1"
+                        "groups": [
+                            {
+                                "name": "level-two-group",
+                                "groupMinInstances": 1,
+                                "groupMaxInstances": 1,
+                                "alias": "level-two-group",
+                                "cartridges": [
+                                    {
+                                        "cartridgeMin": 1,
+                                        "cartridgeMax": 10000000,
+                                        "type": "esb",
+                                        "subscribableInfo": {
+                                            "alias": "level-two-group-esb",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                        }
+                                    },
+                                    {
+                                        "cartridgeMin": 1,
+                                        "cartridgeMax": 10000000,
+                                        "type": "tomcat",
+                                        "subscribableInfo": {
+                                            "alias": "level-two-group-tomcat",
+                                            "deploymentPolicy": "deployment-policy-1",
+                                            "artifactRepository": {
+                                                "privateRepo": false,
+                                                "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                            },
+                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                        }
                                     }
-                                 },
-                                 {
-                                    "cartridgeMin":1,
-                                    "cartridgeMax":10000000,
-                                    "type":"tomcat",
-                                    "subscribableInfo":{
-                                       "alias":"level-three-group-tomcat",
-                                       "deploymentPolicy":"deployment-policy-1",
-                                       "artifactRepository":{
-                                          "privateRepo":false,
-                                          "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                       },
-                                       "autoscalingPolicy":"autoscaling-policy-1"
-                                    }
-                                 }
-                              ],
-                              "groups":[
-                                 {
-                                    "name":"level-four-group",
-                                    "groupMinInstances":1,
-                                    "groupMaxInstances":1,
-                                    "alias":"level-four-group",
-                                    "cartridges":[
-                                       {
-                                          "cartridgeMin":1,
-                                          "cartridgeMax":10000000,
-                                          "type":"esb",
-                                          "subscribableInfo":{
-                                             "alias":"level-four-group-esb",
-                                             "deploymentPolicy":"deployment-policy-1",
-                                             "autoscalingPolicy":"autoscaling-policy-1"
-                                          }
-                                       },
-                                       {
-                                          "cartridgeMin":1,
-                                          "cartridgeMax":10000000,
-                                          "type":"tomcat",
-                                          "subscribableInfo":{
-                                             "alias":"level-four-group-tomcat",
-                                             "deploymentPolicy":"deployment-policy-1",
-                                             "artifactRepository":{
-                                                "privateRepo":false,
-                                                "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                             },
-                                             "autoscalingPolicy":"autoscaling-policy-1"
-                                          }
-                                       }
-                                    ],
-                                    "groups":[
-                                       {
-                                          "name":"level-five-group",
-                                          "groupMinInstances":1,
-                                          "groupMaxInstances":1,
-                                          "alias":"level-five-group",
-                                          "cartridges":[
-                                             {
-                                                "cartridgeMin":1,
-                                                "cartridgeMax":10000000,
-                                                "type":"esb",
-                                                "subscribableInfo":{
-                                                   "alias":"level-five-group-esb",
-                                                   "deploymentPolicy":"deployment-policy-1",
-                                                   "autoscalingPolicy":"autoscaling-policy-1"
+                                ],
+                                "groups": [
+                                    {
+                                        "name": "level-three-group",
+                                        "groupMinInstances": 1,
+                                        "groupMaxInstances": 1,
+                                        "alias": "level-three-group",
+                                        "cartridges": [
+                                            {
+                                                "cartridgeMin": 1,
+                                                "cartridgeMax": 10000000,
+                                                "type": "esb",
+                                                "subscribableInfo": {
+                                                    "alias": "level-three-group-esb",
+                                                    "deploymentPolicy": "deployment-policy-1",
+                                                    "autoscalingPolicy": "autoscaling-policy-1"
                                                 }
-                                             },
-                                             {
-                                                "cartridgeMin":1,
-                                                "cartridgeMax":10000000,
-                                                "type":"tomcat",
-                                                "subscribableInfo":{
-                                                   "alias":"level-five-group-tomcat",
-                                                   "deploymentPolicy":"deployment-policy-1",
-                                                   "artifactRepository":{
-                                                      "privateRepo":false,
-                                                      "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git"
-                                                   },
-                                                   "autoscalingPolicy":"autoscaling-policy-1"
+                                            },
+                                            {
+                                                "cartridgeMin": 1,
+                                                "cartridgeMax": 10000000,
+                                                "type": "tomcat",
+                                                "subscribableInfo": {
+                                                    "alias": "level-three-group-tomcat",
+                                                    "deploymentPolicy": "deployment-policy-1",
+                                                    "artifactRepository": {
+                                                        "privateRepo": false,
+                                                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                                    },
+                                                    "autoscalingPolicy": "autoscaling-policy-1"
                                                 }
-                                             }
-                                          ]
-                                       }
-                                    ]
-                                 }
-                              ]
-                           }
+                                            }
+                                        ],
+                                        "groups": [
+                                            {
+                                                "name": "level-four-group",
+                                                "groupMinInstances": 1,
+                                                "groupMaxInstances": 1,
+                                                "alias": "level-four-group",
+                                                "cartridges": [
+                                                    {
+                                                        "cartridgeMin": 1,
+                                                        "cartridgeMax": 10000000,
+                                                        "type": "esb",
+                                                        "subscribableInfo": {
+                                                            "alias": "level-four-group-esb",
+                                                            "deploymentPolicy": "deployment-policy-1",
+                                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                                        }
+                                                    },
+                                                    {
+                                                        "cartridgeMin": 1,
+                                                        "cartridgeMax": 10000000,
+                                                        "type": "tomcat",
+                                                        "subscribableInfo": {
+                                                            "alias": "level-four-group-tomcat",
+                                                            "deploymentPolicy": "deployment-policy-1",
+                                                            "artifactRepository": {
+                                                                "privateRepo": false,
+                                                                "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                                            },
+                                                            "autoscalingPolicy": "autoscaling-policy-1"
+                                                        }
+                                                    }
+                                                ],
+                                                "groups": [
+                                                    {
+                                                        "name": "level-five-group",
+                                                        "groupMinInstances": 1,
+                                                        "groupMaxInstances": 1,
+                                                        "alias": "level-five-group",
+                                                        "cartridges": [
+                                                            {
+                                                                "cartridgeMin": 1,
+                                                                "cartridgeMax": 10000000,
+                                                                "type": "esb",
+                                                                "subscribableInfo": {
+                                                                    "alias": "level-five-group-esb",
+                                                                    "deploymentPolicy": "deployment-policy-1",
+                                                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                                                }
+                                                            },
+                                                            {
+                                                                "cartridgeMin": 1,
+                                                                "cartridgeMax": 10000000,
+                                                                "type": "tomcat",
+                                                                "subscribableInfo": {
+                                                                    "alias": "level-five-group-tomcat",
+                                                                    "deploymentPolicy": "deployment-policy-1",
+                                                                    "artifactRepository": {
+                                                                        "privateRepo": false,
+                                                                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git"
+                                                                    },
+                                                                    "autoscalingPolicy": "autoscaling-policy-1"
+                                                                }
+                                                            }
+                                                        ]
+                                                    }
+                                                ]
+                                            }
+                                        ]
+                                    }
+                                ]
+                            }
                         ]
-                     }
-                  ]
-               }
-            ]
-         }
-      ]
-   }
+                    }
+                ]
+            }
+        ]
+    }
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/single-level-nested-group-app/artifacts/application.json b/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
index 2f3267a..70a9d82 100644
--- a/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
+++ b/samples/applications/nested/single-level-nested-group-app/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-2",
+                "deploymentPolicy": "deployment-policy-2",
                 "groups": [
                     {
                         "name": "group7",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group7",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                        "privateRepo":false,
-                                        "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                        "repoUsername":"",
-                                        "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -42,11 +42,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group6",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -61,12 +61,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-2",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-2",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -74,7 +74,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-group6",
                         "cartridge.my-tomcat"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json b/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
index 53827f3..cc400a1 100644
--- a/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
+++ b/samples/applications/nested/single-level-nested-groups-app/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group7",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group7",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -42,11 +42,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group6",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -57,7 +57,7 @@
                 "alias": "my-group8",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group9",
@@ -72,11 +72,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-tomcat1-group9",
                                     "autoscalingPolicy": "autoscaling-policy-1",
-                                    "artifactRepository":{
-                                       "privateRepo":false,
-                                       "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
-                                       "repoUsername":"",
-                                       "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -91,11 +91,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat2-group8",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -110,12 +110,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-                    "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                       "privateRepo":false,
-                       "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                       "repoUsername":"",
-                       "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -123,7 +123,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-group8",
                         "cartridge.my-tomcat",
                         "group.my-group6"

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
----------------------------------------------------------------------
diff --git a/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json b/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
index 666c299..e931487 100644
--- a/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
+++ b/samples/applications/nested/single-level-nested-groups-app/artifacts/deployment-policy.json
@@ -1,15 +1,15 @@
 {
-   "id": "deployment-policy-1",
-   "networkPartition": [
-      {
-         "id": "network-partition-1",
-         "partitionAlgo": "one-after-another",
-         "partitions": [
-            {
-               "id": "partition-1",
-               "max": 5
-            }
-         ]
-      }
-   ]
+    "id": "deployment-policy-1",
+    "networkPartition": [
+        {
+            "id": "network-partition-1",
+            "partitionAlgo": "one-after-another",
+            "partitions": [
+                {
+                    "id": "partition-1",
+                    "max": 5
+                }
+            ]
+        }
+    ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json b/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
index 138648e..73a5774 100644
--- a/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
+++ b/samples/applications/scaling/app-bursting-pattern/artifacts/application-signup.json
@@ -1,18 +1,18 @@
 {
-   "artifactRepositories":[
-      {
-         "alias":"php",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      },
-      {
-         "alias":"tomcat",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      }
-   ]
+    "artifactRepositories": [
+        {
+            "alias": "php",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        },
+        {
+            "alias": "tomcat",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        }
+    ]
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/app-bursting-pattern/artifacts/application.json b/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
index 1cb3e57..ad66f60 100644
--- a/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
+++ b/samples/applications/scaling/app-bursting-pattern/artifacts/application.json
@@ -1,25 +1,25 @@
-{  
-   "applicationId":"app-bursting-pattern-app",
-   "alias":"app-bursting-pattern-app",
-   "multiTenant":false,
-   "components":{  
-      "cartridges":[  
-         {  
-                "type":"php",
+{
+    "applicationId": "app-bursting-pattern-app",
+    "alias": "app-bursting-pattern-app",
+    "multiTenant": false,
+    "components": {
+        "cartridges": [
+            {
+                "type": "php",
                 "cartridgeMin": 1,
-                "cartridgeMax": 10,    
-		"subscribableInfo":{  
-               	"alias":"my-php",
-               	"autoscalingPolicy":"autoscaling-policy-1",
-                "deploymentPolicy":"deployment-policy-4",
-                "artifactRepository":{
-                   "privateRepo":false,
-                   "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-                   "repoUsername":"",
-                   "repoPassword":""
+                "cartridgeMax": 10,
+                "subscribableInfo": {
+                    "alias": "my-php",
+                    "autoscalingPolicy": "autoscaling-policy-1",
+                    "deploymentPolicy": "deployment-policy-4",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
+                    }
                 }
             }
-         }
-      ]
-   }
+        ]
+    }
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json b/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
index 17ee4f6..4086fa6 100644
--- a/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
+++ b/samples/applications/scaling/app-bursting-pattern/artifacts/domain-mappings.json
@@ -1,9 +1,9 @@
 {
     "domainMappings": [
         {
-            "cartridgeAlias":"php1",
-            "domainName":"abc.com",
-            "contextPath":"/abc/app"
+            "cartridgeAlias": "php1",
+            "domainName": "abc.com",
+            "contextPath": "/abc/app"
         }
     ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json b/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
index 830e552..2f02db9 100644
--- a/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
+++ b/samples/applications/scaling/dependent-scaling/sample-cartridges/artifacts/application.json
@@ -10,12 +10,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-	                "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             },
@@ -26,12 +26,12 @@
                 "subscribableInfo": {
                     "alias": "my-php",
                     "autoscalingPolicy": "autoscaling-policy-1",
-	                "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -39,7 +39,7 @@
         "dependencies": {
             "scalingDependents": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "cartridge.my-tomcat",
                         "cartridge.my-php"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json b/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
index 29467f0..21e5991 100644
--- a/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
+++ b/samples/applications/scaling/dependent-scaling/sample-groups/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-esb-php-group",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 2,
-		        "deploymentPolicy": "deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "cartridges": [
                     {
                         "type": "esb",
@@ -17,12 +17,12 @@
                         "subscribableInfo": {
                             "alias": "my-esb",
                             "autoscalingPolicy": "autoscaling-policy-1",
-	                        "deploymentPolicy":"deployment-policy-1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-esb-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "deploymentPolicy": "deployment-policy-1",
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-esb-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     },
@@ -33,12 +33,12 @@
                         "subscribableInfo": {
                             "alias": "my-php",
                             "autoscalingPolicy": "autoscaling-policy-1",
-	        	            "deploymentPolicy":"deployment-policy-1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "deploymentPolicy": "deployment-policy-1",
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -53,12 +53,12 @@
                 "subscribableInfo": {
                     "alias": "my-tomcat",
                     "autoscalingPolicy": "autoscaling-policy-1",
-	                "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -66,7 +66,7 @@
         "dependencies": {
             "scalingDependents": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-esb-php-group",
                         "cartridge.my-tomcat"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json b/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
index f606b4f..545307a 100644
--- a/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
+++ b/samples/applications/scaling/group-scaling/group-scaling-app/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group1",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 1,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "groups": [
                     {
                         "name": "group2",
@@ -23,11 +23,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-c2-group2",
                                     "autoscalingPolicy": "autoscaling-policy-c2",
-                                    "artifactRepository":{
-                                        "privateRepo":false,
-                                        "repoUrl":"https://github.com/imesh/stratos-c2-applications.git",
-                                        "repoUsername":"",
-                                        "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-c2-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             },
@@ -38,11 +38,11 @@
                                 "subscribableInfo": {
                                     "alias": "my-c3-group2",
                                     "autoscalingPolicy": "autoscaling-policy-c3",
-                                    "artifactRepository":{
-                                        "privateRepo":false,
-                                        "repoUrl":"https://github.com/imesh/stratos-c3-applications.git",
-                                        "repoUsername":"",
-                                        "repoPassword":""
+                                    "artifactRepository": {
+                                        "privateRepo": false,
+                                        "repoUrl": "https://github.com/imesh/stratos-c3-applications.git",
+                                        "repoUsername": "",
+                                        "repoPassword": ""
                                     }
                                 }
                             }
@@ -57,11 +57,11 @@
                         "subscribableInfo": {
                             "alias": "my-c1-group1",
                             "autoscalingPolicy": "autoscaling-policy-c1",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-c1-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-c1-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }
@@ -76,12 +76,12 @@
                 "subscribableInfo": {
                     "alias": "my-c4",
                     "autoscalingPolicy": "autoscaling-policy-c4",
-                    "deploymentPolicy":"deployment-policy-1",
-                    "artifactRepository":{
-                        "privateRepo":false,
-                        "repoUrl":"https://github.com/imesh/stratos-c4-applications.git",
-                        "repoUsername":"",
-                        "repoPassword":""
+                    "deploymentPolicy": "deployment-policy-1",
+                    "artifactRepository": {
+                        "privateRepo": false,
+                        "repoUrl": "https://github.com/imesh/stratos-c4-applications.git",
+                        "repoUsername": "",
+                        "repoPassword": ""
                     }
                 }
             }
@@ -89,7 +89,7 @@
         "dependencies": {
             "startupOrders": [
                 {
-                    "aliases" : [
+                    "aliases": [
                         "group.my-group1",
                         "cartridge.my-c4"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json b/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
index c486e93..8116f0a 100644
--- a/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
+++ b/samples/applications/scaling/group-scaling/group-scaling-v1/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group2",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 2,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "cartridges": [
                     {
                         "type": "c2",
@@ -17,11 +17,11 @@
                         "subscribableInfo": {
                             "alias": "my-c2",
                             "autoscalingPolicy": "autoscaling-policy-c2",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-c2-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-c2-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     },
@@ -32,11 +32,11 @@
                         "subscribableInfo": {
                             "alias": "my-c3",
                             "autoscalingPolicy": "autoscaling-policy-c3",
-                            "artifactRepository":{
-                                "privateRepo":false,
-                                "repoUrl":"https://github.com/imesh/stratos-c3-applications.git",
-                                "repoUsername":"",
-                                "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-c3-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json b/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
index 08c7ede..5bb6018 100644
--- a/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
+++ b/samples/applications/scaling/group-scaling/single-group-group-scaling/artifacts/application.json
@@ -8,7 +8,7 @@
                 "alias": "my-group6",
                 "groupMinInstances": 1,
                 "groupMaxInstances": 3,
-                "deploymentPolicy":"deployment-policy-1",
+                "deploymentPolicy": "deployment-policy-1",
                 "cartridges": [
                     {
                         "type": "tomcat",
@@ -17,11 +17,11 @@
                         "subscribableInfo": {
                             "alias": "my-tomcat",
                             "autoscalingPolicy": "autoscaling-policy-1",
-                            "artifactRepository":{
-                               "privateRepo":false,
-                               "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-                               "repoUsername":"",
-                               "repoPassword":""
+                            "artifactRepository": {
+                                "privateRepo": false,
+                                "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+                                "repoUsername": "",
+                                "repoPassword": ""
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
----------------------------------------------------------------------
diff --git a/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json b/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
index 138648e..73a5774 100644
--- a/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
+++ b/samples/applications/simple/single-cartridge-app/artifacts/application-signup.json
@@ -1,18 +1,18 @@
 {
-   "artifactRepositories":[
-      {
-         "alias":"php",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-php-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      },
-      {
-         "alias":"tomcat",
-         "privateRepo":false,
-         "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git",
-         "repoUsername":"",
-         "repoPassword":""
-      }
-   ]
+    "artifactRepositories": [
+        {
+            "alias": "php",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        },
+        {
+            "alias": "tomcat",
+            "privateRepo": false,
+            "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+            "repoUsername": "",
+            "repoPassword": ""
+        }
+    ]
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
----------------------------------------------------------------------
diff --git a/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json b/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
index 78e6008..d26db7f 100644
--- a/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
+++ b/samples/applications/simple/single-cartridge-app/artifacts/domain-mappings.json
@@ -1,9 +1,9 @@
 {
     "domainMappings": [
         {
-            "cartridgeAlias":"my-php",
-            "domainName":"abc.com",
-            "contextPath":"/abc/app"
+            "cartridgeAlias": "my-php",
+            "domainName": "abc.com",
+            "contextPath": "/abc/app"
         }
     ]
 }

http://git-wip-us.apache.org/repos/asf/stratos/blob/a28aceca/samples/autoscaling-policies/autoscaling-policy-1.json
----------------------------------------------------------------------
diff --git a/samples/autoscaling-policies/autoscaling-policy-1.json b/samples/autoscaling-policies/autoscaling-policy-1.json
index 495ed7b..e5ac700 100644
--- a/samples/autoscaling-policies/autoscaling-policy-1.json
+++ b/samples/autoscaling-policies/autoscaling-policy-1.json
@@ -1,14 +1,14 @@
 {
-  "id": "autoscaling-policy-1",
-  "loadThresholds": {
-    "requestsInFlight": {
-      "threshold": 20
-    },
-    "memoryConsumption": {
-      "threshold": 70
-    },
-    "loadAverage": {
-      "threshold": 70
+    "id": "autoscaling-policy-1",
+    "loadThresholds": {
+        "requestsInFlight": {
+            "threshold": 20
+        },
+        "memoryConsumption": {
+            "threshold": 70
+        },
+        "loadAverage": {
+            "threshold": 70
+        }
     }
-  }
 }