Skip to main content



      Home
Home » Eclipse Projects » Equinox » How to read file of the bundle in server-side equinox?
How to read file of the bundle in server-side equinox? [message #114944] Tue, 22 July 2008 03:18 Go to next message
Eclipse UserFriend
Originally posted by: jeffidea.hotmai.com

I deploy my web-bundle in server-side equinox, but how can I read file in
my bundle? for example, my bundle file structure:
|-conf
| |-sys.xml
|-lib
|-src
How can I read sys.xml? Must I need to use org.eclipse.core.resources
bundle?
Re: How to read file of the bundle in server-side equinox? [message #114957 is a reply to message #114944] Tue, 22 July 2008 03:51 Go to previous message
Eclipse UserFriend
Hi Jeff,

Jeff schrieb:
> How can I read sys.xml? Must I need to use org.eclipse.core.resources
> bundle?

You need to use an Activator to get access to the BundleContext. Use
BundleContext#getBundle() to get the Bundle instance and from there you
cann use Bundle#getEntry(String) to get the resource.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:Find out bundle from BundleActivator
Next Topic:p2 and multi-user install
Goto Forum:
  


Current Time: Sat Jul 19 14:27:29 EDT 2025

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

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

Back to the top