You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2010/09/14 16:39:26 UTC
svn commit: r996920 -
/sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/OsgiInstallerImpl.java
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);
}