felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r1352149 - /felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/LocalResourceImpl.java
Date Wed, 20 Jun 2012 15:15:13 GMT
Author: rickhall
Date: Wed Jun 20 15:15:13 2012
New Revision: 1352149

URL: http://svn.apache.org/viewvc?rev=1352149&view=rev
Log:
Apply patch (FELIX-2465) to add system.bundle alias bundle capability.

Modified:
    felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/LocalResourceImpl.java

Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/LocalResourceImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/LocalResourceImpl.java?rev=1352149&r1=1352148&r2=1352149&view=diff
==============================================================================
--- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/LocalResourceImpl.java
(original)
+++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/LocalResourceImpl.java
Wed Jun 20 15:15:13 2012
@@ -24,6 +24,7 @@ import java.util.Set;
 import java.util.StringTokenizer;
 
 import org.apache.felix.bundlerepository.Capability;
+import org.apache.felix.bundlerepository.Resource;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.Constants;
 import org.osgi.framework.InvalidSyntaxException;
@@ -68,6 +69,11 @@ public class LocalResourceImpl extends R
         // For the system bundle, add a special platform capability.
         if (m_bundle.getBundleId() == 0)
         {
+            // add the alias bundle symbolic name "system.bundle"
+            CapabilityImpl sysBundleCap = new CapabilityImpl(Capability.BUNDLE);
+            sysBundleCap.addProperty(Resource.SYMBOLIC_NAME, Constants.SYSTEM_BUNDLE_SYMBOLICNAME);
+            addCapability(sysBundleCap);
+
             // set the execution environment(s) as Capability ee of the
             // system bundle to resolve bundles with specific requirements
             String ee = m_bundle.getBundleContext().getProperty(Constants.FRAMEWORK_EXECUTIONENVIRONMENT);



Mime
View raw message