karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r962538 - /karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
Date Fri, 09 Jul 2010 14:10:04 GMT
Author: gnodet
Date: Fri Jul  9 14:10:03 2010
New Revision: 962538

URL: http://svn.apache.org/viewvc?rev=962538&view=rev
Log:
KARAF-105: fix features service state load

Modified:
    karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java

Modified: karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
URL: http://svn.apache.org/viewvc/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java?rev=962538&r1=962537&r2=962538&view=diff
==============================================================================
--- karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
(original)
+++ karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
Fri Jul  9 14:10:03 2010
@@ -891,9 +891,11 @@ public class FeaturesServiceImpl impleme
         Map<Feature, Set<Long>> map = new HashMap<Feature, Set<Long>>();
         for (Enumeration e = props.propertyNames(); e.hasMoreElements();) {
             String key = (String) e.nextElement();
-            String val = (String) props.get(key);
-            Set<Long> set = readValue(val);
-            map.put(FeatureImpl.valueOf(key), set);
+            if (key.startsWith(prefix)) {
+                String val = (String) props.get(key);
+                Set<Long> set = readValue(val);
+                map.put(FeatureImpl.valueOf(key.substring(prefix.length())), set);
+            }
         }
         return map;
     }



Mime
View raw message