Hi,

I need to convert the URL given by
URL url =
Bundle.loadClass('something').getClassLoader().getResource('anotherthing');

Using equinox I get "bundleresource://" protocol, so I want to convert to
file://.

To convert I use:

URL fileURL = org.eclipse.core.runtime.FileLocator.toFileURL(url);

Is there an Felix equivalent or in the OSGI standard?

Thanks,

Erik Bengtson


PS:
Richard,

thanks for the previous answer regarding best pratices on dependencies.

Reply via email to