+ getPBootClasspath().add(asResource(location));
+
+ if (location.startsWith("file:")) {
+ File file = new File(location.substring("file:".length()));
+ if (osgiLocations.length() != 0)
+ osgiLocations.append(File.pathSeparatorChar);
+ location = file.getPath().replace('/', File.separatorChar);
+ osgiLocations.append(location);
+ if (log.isTraceEnabled())
+ log.trace("Added bundle " + name
+ + " to argeo.osgi.locations: " + location);
+ } else {
+ if (osgiBundles.length() != 0)
+ osgiBundles.append(',');
+ location = location.replace('/', File.separatorChar);
+ osgiBundles.append(location);
+ if (log.isTraceEnabled())
+ log.trace("Added bundle " + name + " to osgi.bundles: "
+ + location);
+ }
+ }