camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1331273 - /camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
Date Fri, 27 Apr 2012 07:48:01 GMT
Author: davsclaus
Date: Fri Apr 27 07:48:00 2012
New Revision: 1331273

URL: http://svn.apache.org/viewvc?rev=1331273&view=rev
Log:
CAMEL-5229: Property placeholders using blueprint, should avoid setting empty locations by
default

Modified:
    camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java

Modified: camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java?rev=1331273&r1=1331272&r2=1331273&view=diff
==============================================================================
--- camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
(original)
+++ camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
Fri Apr 27 07:48:00 2012
@@ -222,8 +222,10 @@ public class CamelContextFactoryBean ext
                 for (String id : ids) {
                     sb.append("blueprint:").append(id).append(",");
                 }
-                // location supports multiple separated by comma
-                pc.setLocation(sb.toString());
+                if (sb.length() > 0) {
+                    // location supports multiple separated by comma
+                    pc.setLocation(sb.toString());
+                }
             }
 
             if (pc.getLocations() != null) {



Mime
View raw message