sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r996920 - /sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/OsgiInstallerImpl.java
Date Tue, 14 Sep 2010 14:39:26 GMT
Author: cziegeler
Date: Tue Sep 14 14:39:26 2010
New Revision: 996920

URL: http://svn.apache.org/viewvc?rev=996920&view=rev
Log:
Remove code again - this is already checked in RegisteredResourceImpl.create()

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

Modified: sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/OsgiInstallerImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/OsgiInstallerImpl.java?rev=996920&r1=996919&r2=996920&view=diff
==============================================================================
--- sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/OsgiInstallerImpl.java
(original)
+++ sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/OsgiInstallerImpl.java
Tue Sep 14 14:39:26 2010
@@ -199,14 +199,8 @@ public class OsgiInstallerImpl
             for(final InstallableResource r : resources ) {
                 try {
                     final RegisteredResource rr = RegisteredResourceImpl.create(ctx, r, scheme);
-                    final String rt = rr.getType();
-                    if ( InstallableResource.TYPE_BUNDLE.equals(rt) || InstallableResource.TYPE_CONFIG.equals(rt)
) {
-                        createdResources.add(rr);
-                        logger.debug("Adding new resource {}", rr);
-                    } else {
-                        logger.debug("Ignoring unsupported resource type {} of resource {}",
rt, rr);
-                        rr.cleanup();
-                    }
+                    createdResources.add(rr);
+                    logger.debug("Registering new resource: {}", rr);
                 } catch (final IOException ioe) {
                     logger.warn("Cannot create RegisteredResource (resource will be ignored):"
+ r, ioe);
                 }



Mime
View raw message