commit | 3b2aebcd088d685322333313378f87b7b5925c97 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Wed Jun 27 16:22:55 2012 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Wed Jun 27 16:22:55 2012 +0000 |
tree | 471fd5a7adb63a9e662ba973985377faca4838a2 | |
parent | 66afc01a50be0f208cfab46f7b255363ae9c0458 [diff] |
FELIX-3550 : Reimplement the SCR Generator git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1354615 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java index 4bf1daf..d1dc04e 100644 --- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java +++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
@@ -471,7 +471,7 @@ final String policy = attributes.getValue(COMPONENT_ATTR_POLICY); if ( policy != null ) { try { - desc.setConfigurationPolicy(ComponentConfigurationPolicy.valueOf(policy)); + desc.setConfigurationPolicy(ComponentConfigurationPolicy.valueOf(policy.toUpperCase())); } catch (final IllegalArgumentException iae) { iLog.addWarning("Invalid value for attribute " + COMPONENT_ATTR_POLICY + " : " + policy, this.location); }