Hi,

the pax - eco system (from ops4j) contains a bunch of little helpers,
either pax-swissbox or maybe pax-dir may help? [1]

regards, Achim

[1] - https://ops4j1.jira.com/wiki/display/paxurl/Dir+Protocol


2017-05-17 15:27 GMT+02:00 Thomas Watson <tjwat...@us.ibm.com>:

> I'm not aware of such an implementation, but it may be interesting to see
> if such an implementation can be provided either by the framework or even
> better, by a bundle installed on top.  I have not looked at providing a
> FileSystemProvider before.  I assume it is similar to providing your own
> protocol handler for URL?
>
> Tom
>
>
>
>
> ----- Original message -----
> From: Michael Lipp <m...@mnl.de>
> Sent by: osgi-dev-boun...@mail.osgi.org
> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org>
> Cc:
> Subject: [osgi-dev] FileSystemProvider for OSGi bundle
> Date: Tue, May 16, 2017 4:40 PM
>
> Hi,
>
> I searched to no avail. Does anybody know of an implementation of
> FileSystemProvider
> (https://docs.oracle.com/javase/7/docs/api/java/nio/
> file/spi/FileSystemProvider.html)
> that supports the "bundle:" scheme (similar to the Zip File System
> Provider:
> https://docs.oracle.com/javase/8/docs/technotes/guides/io/fsp/
> zipfilesystemprovider.html)?
>
> I have code that relies on a directory tree of resources to be available
> as NIO FileSystem. This is no problem when the using the "ordinary"
> class loading. The "root" is found using a resource lookup (URI resSrc =
> this.getClass().getResource("").toURI();). This returns a URI with
> scheme "jar", which can be passed to FileSystems.newFileSystem. When
> running in the OSGi environment, I get a URI with the "bundle" scheme...
>
>  - Michael
>
>
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
>
>
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to