- String location = bundle.getLocation();
- if (location.startsWith("reference:file:"))
- location = location.substring("reference:".length());
+ String originalLocation = bundle.getLocation();
+
+ if (OsgiBundleUtils.isSystemBundle(bundle)) {
+ continue bundles;
+ }
+
+ String location = originalLocation;
+ if (originalLocation.startsWith("reference:file:"))
+ location = originalLocation.substring("reference:".length());
+
+ if (frameworkBaseUrl != null
+ && originalLocation.startsWith("initial@reference:file:")) {
+ location = frameworkBaseUrl
+ + '/'
+ + originalLocation.substring("initial@reference:file:"
+ .length());
+ }
+