incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r984451 - /sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/InstallableResourceFactoryImpl.java
Date Wed, 11 Aug 2010 15:51:45 GMT
Author: cziegeler
Date: Wed Aug 11 15:51:45 2010
New Revision: 984451

URL: http://svn.apache.org/viewvc?rev=984451&view=rev
Log:
SLING-1560 : If extension is unknown, create unknown type (for pluggable formats)

Modified:
    sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/InstallableResourceFactoryImpl.java

Modified: sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/InstallableResourceFactoryImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/InstallableResourceFactoryImpl.java?rev=984451&r1=984450&r2=984451&view=diff
==============================================================================
--- sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/InstallableResourceFactoryImpl.java
(original)
+++ sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/InstallableResourceFactoryImpl.java
Wed Aug 11 15:51:45 2010
@@ -83,6 +83,9 @@ public class InstallableResourceFactoryI
         if (extension.equals("jar")) {
             return InstallableResource.TYPE_BUNDLE;
         }
-        return InstallableResource.TYPE_CONFIG;
+        if ( extension.equals("cfg") || extension.equals("config") || extension.equals("xml")
) {
+            return InstallableResource.TYPE_CONFIG;
+        }
+        return extension;
     }
 }



Mime
View raw message