X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=base%2Fruntime%2Forg.argeo.osgi.boot%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fosgi%2Fboot%2FOsgiBoot.java;h=300ebb82dd48ba2802b3328cd832fd3a3dc1dbbe;hb=3a3d316af102ba410d1d9e6de349d0c8f7ac044f;hp=999d8b16459f828aa9ada7993c9b70c4a872aab4;hpb=cd50e3711d3b86921f11d9e021fc6a43bef0d400;p=lgpl%2Fargeo-commons.git diff --git a/base/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java b/base/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java index 999d8b164..300ebb82d 100644 --- a/base/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java +++ b/base/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java @@ -849,15 +849,15 @@ public class OsgiBoot { /** Creates an URL from a location */ protected String locationToUrl(String baseUrl, String location) { - int extInd = location.lastIndexOf('.'); - String ext = null; - if (extInd > 0) - ext = location.substring(extInd); - - if (baseUrl.startsWith("reference:") && ".jar".equals(ext)) - return "file:" + location; - else - return baseUrl + location; + // int extInd = location.lastIndexOf('.'); + // String ext = null; + // if (extInd > 0) + // ext = location.substring(extInd); + // + // if (baseUrl.startsWith("reference:") && ".jar".equals(ext)) + // return "file:" + location; + // else + return baseUrl + location; } /** Transforms a relative path in a full system path. */