Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Read bundle files from a bundle class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Read bundle files from a bundle class

    Hi,

    How is a file accessed by a bundle class? The file to read is inside the bundle.
    And it is at the top level i.e. at package, META-INF level.

    Thanks
    Ramesh

  • #2
    As you would in normal Java:
    SomeClass.class.getResource() or
    SomeClass.class.getClassLoader().getResource()/getResources()

    Of course you can also use the OSGi API:
    bundle.findEntries/getResources() and friends.

    Comment

    Working...
    X