You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2013/01/25 11:12:02 UTC

svn commit: r1438413 - /felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java

Author: cziegeler
Date: Fri Jan 25 10:12:02 2013
New Revision: 1438413

URL: http://svn.apache.org/viewvc?rev=1438413&view=rev
Log:
FELIX-3169 :  Add support for new PASSWORD attribute type of Metatype service 

Modified:
    felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java

Modified: felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java?rev=1438413&r1=1438412&r2=1438413&view=diff
==============================================================================
--- felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java (original)
+++ felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java Fri Jan 25 10:12:02 2013
@@ -337,7 +337,7 @@ public class ComponentDescriptorIO {
     protected static void generatePropertyXML(PropertyDescription property, ContentHandler contentHandler) throws SAXException {
         final AttributesImpl ai = new AttributesImpl();
         IOUtils.addAttribute(ai, ATTR_NAME, property.getName());
-        if ( property.getType() != PropertyType.String ) {
+        if ( property.getType() != PropertyType.String && property.getType() != PropertyType.Passwort) {
             IOUtils.addAttribute(ai, PROPERTY_ATTR_TYPE, property.getType());
         }
         String value = property.getValue();