How do I get a PATHNAME from OSGi instead of a URL? [message #295305] |
Mon, 28 November 2005 08:01  |
Eclipse User |
|
|
|
Originally posted by: bim2005.basistech.com
I have a plugin that wraps some JNI. I need to pass a real, live, pathname
on disk of some data files to the JNI.
I can locate the resources with Bundle.findEntries, but that returns URLs
with the special custom OSGi protocol handler. I don't want a stream
connection, that won't help at all. There has, I think, to be some way to
sort this out, but I can't figure out what.
|
|
|
Re: How do I get a PATHNAME from OSGi instead of a URL? [message #295307 is a reply to message #295305] |
Mon, 28 November 2005 08:13  |
Eclipse User |
|
|
|
Originally posted by: chaves.inf.no.spam.ufsc.br
Use Platform.asLocalURL(<exotic-URL>). The resulting URL's path is good
for passing to external code.
Rafael
Benson Margulies wrote:
> I have a plugin that wraps some JNI. I need to pass a real, live, pathname
> on disk of some data files to the JNI.
>
> I can locate the resources with Bundle.findEntries, but that returns URLs
> with the special custom OSGi protocol handler. I don't want a stream
> connection, that won't help at all. There has, I think, to be some way to
> sort this out, but I can't figure out what.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07574 seconds