X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=osgi%2Fruntime%2Forg.argeo.osgi.boot%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fosgi%2Fboot%2FOsgiBoot.java;h=f120358a11cc63aed74a9353fc9eb92956ced332;hb=34af89b606ac097a605cf1a37efc638b9583d49d;hp=63e5d059b39cbd9b8d928aa21bd5755737e035ac;hpb=118878eb12c8e142da7648cae3880754b34798b2;p=lgpl%2Fargeo-commons.git diff --git a/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java b/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java index 63e5d059b..f120358a1 100644 --- a/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java +++ b/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java @@ -113,15 +113,7 @@ public class OsgiBoot { } - public static 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; - } - + /** Boot strap the OSGi runtime */ public void bootstrap() { long begin = System.currentTimeMillis(); System.out.println(); @@ -611,6 +603,10 @@ public class OsgiBoot { return urls; } + /* + * HIGH LEVEL UTILITIES + */ + protected void match(PathMatcher matcher, List matched, String base, String currentPath, String pattern) { if (currentPath == null) { @@ -675,6 +671,11 @@ public class OsgiBoot { } } + /* + * LOW LEVEL UTILITIES + */ + + /** Creates an URL from alocation */ protected String locationToUrl(String baseUrl, String location) { int extInd = location.lastIndexOf('.'); String ext = null; @@ -692,6 +693,15 @@ public class OsgiBoot { 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; + } + protected void debug(Object obj) { if (debug) OsgiBootUtils.debug(obj);