Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How do I get a PATHNAME from OSGi instead of a URL?
How do I get a PATHNAME from OSGi instead of a URL? [message #295305] Mon, 28 November 2005 08:01 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
>
Previous Topic:update site/pde build problem
Next Topic:Wizard design question
Goto Forum:
  


Current Time: Tue Jul 22 22:56:55 EDT 2025

Powered by FUDForum. Page generated in 0.07574 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top