Module OSGi

This module is undocumented. This is a list of its definitions.

entryFromBundle :: String -> String -> URL

entryFromBundle bundleName entryPath is the URL of the given entry in the installed bundle with the given symbolic name. All bundles with that symbolic name are searched and the first entry found is returned.

If no such entry exists the result is a null that SCL has no representation for, so it escapes into the program and typically surfaces much later as a NullPointerException.

fileFromURL :: URL -> File

The file that the given URL points to. Does not work for a URL that points inside a bundle packaged as a jar file, and fails with an exception if the URL cannot be resolved to a file at all.