From: Mathieu Baudier Date: Tue, 19 Mar 2013 11:43:14 +0000 (+0000) Subject: Do not force install of jars as file: instead of reference:file: X-Git-Tag: argeo-commons-2.1.30~678 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;h=365247afcf59324d2334c28b2c23d9e175d6b492;p=lgpl%2Fargeo-commons.git Do not force install of jars as file: instead of reference:file: https://www.argeo.org/bugzilla/show_bug.cgi?id=134 git-svn-id: https://svn.argeo.org/commons/trunk@6160 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- 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. */