]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.osgi/src/main/java/org/argeo/slc/osgi/BundlesManager.java
Working command line SLC
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.osgi / src / main / java / org / argeo / slc / osgi / BundlesManager.java
index 3c3ed406776278981b788899ab4810fc36a815ed..ee3f151f28069bec38429a42d10eb7976c2d6c14 100644 (file)
@@ -320,6 +320,15 @@ public class BundlesManager implements BundleContextAware, FrameworkListener,
                        return service;
        }
 
+       public OsgiBundle findRelatedBundle(String moduleName, String moduleVersion) {
+               OsgiBundle osgiBundle = new OsgiBundle(moduleName, moduleVersion);
+               if (osgiBundle.getVersion() == null) {
+                       Bundle bundle = findRelatedBundle(osgiBundle);
+                       osgiBundle = new OsgiBundle(bundle);
+               }
+               return osgiBundle;
+       }
+
        /**
         * @param osgiBundle
         *            cannot be null