}
- 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();
return urls;
}
+ /*
+ * HIGH LEVEL UTILITIES
+ */
+
protected void match(PathMatcher matcher, List matched, String base,
String currentPath, String pattern) {
if (currentPath == null) {
}
}
+ /*
+ * LOW LEVEL UTILITIES
+ */
+
+ /** Creates an URL from alocation */
protected String locationToUrl(String baseUrl, String location) {
int extInd = location.lastIndexOf('.');
String ext = null;
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);