svn commit: r1668236 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1668236 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java

Deepak Dixit-5
Author: deepak
Date: Sat Mar 21 11:14:55 2015
New Revision: 1668236

URL: http://svn.apache.org/r1668236
Log:
OFBIZ-6183: Update ComponentConfig code to allow empty mount point, as if need to mount website on root then mount-point should be "" instead of "/".

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java?rev=1668236&r1=1668235&r2=1668236&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java Sat Mar 21 11:14:55 2015
@@ -847,12 +847,8 @@ public final class ComponentConfig {
             this.description = description;
             this.server = element.getAttribute("server");
             String mountPoint = element.getAttribute("mount-point");
-            if (mountPoint.isEmpty()) {
-                // default mount point is name if none specified
-                mountPoint = this.name;
-            }
             // check the mount point and make sure it is properly formatted
-            if (!"/".equals(mountPoint)) {
+            if (!mountPoint.isEmpty()) {
                 if (!mountPoint.startsWith("/")) {
                     mountPoint = "/" + mountPoint;
                 }