X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.osgi.boot%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fboot%2FOsgiBoot.java;h=64ace0c3ee4f8fc518d41a0c9ee67af126e70f22;hb=e66b9893b0e511f8ab295e3cee42b7dc966f1597;hp=607f6264b2c9c76809759b1ac4bae43d3330f71d;hpb=8260f4470f514ea347ca53f5b4dfc632c4a4de66;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/OsgiBoot.java b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/OsgiBoot.java index 607f6264b..64ace0c3e 100644 --- a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/OsgiBoot.java +++ b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/OsgiBoot.java @@ -205,10 +205,13 @@ public class OsgiBoot implements OsgiBootConstants { warn("Skip " + url); return; } else { - Bundle bundle = bundleContext.installBundle(url); - OsgiBootUtils - .info("Installed " + bundle.getSymbolicName() + "-" + bundle.getVersion() + " from " + url); + if (url.startsWith("http")) + OsgiBootUtils + .info("Installed " + bundle.getSymbolicName() + "-" + bundle.getVersion() + " from " + url); + else if (debug) + OsgiBootUtils.debug( + "Installed " + bundle.getSymbolicName() + "-" + bundle.getVersion() + " from " + url); } } catch (BundleException e) { String message = e.getMessage(); @@ -642,14 +645,14 @@ public class OsgiBoot implements OsgiBootConstants { return (basePath + '/' + relativePath).replace('/', File.separatorChar); } - private String removeFilePrefix(String url) { - if (url.startsWith("file:")) - return url.substring("file:".length()); - else if (url.startsWith("reference:file:")) - return url.substring("reference:file:".length()); - else - return url; - } + // private String removeFilePrefix(String url) { + // if (url.startsWith("file:")) + // return url.substring("file:".length()); + // else if (url.startsWith("reference:file:")) + // return url.substring("reference:file:".length()); + // else + // return url; + // } /* * BEAN METHODS