Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Access configuration files in plugin root
Access configuration files in plugin root [message #280029] Thu, 27 January 2005 07:56 Go to next message
Eclipse UserFriend
Originally posted by: dorus.savatech.ro

Hello everybody,

I want to access programatically some configuration files which are
situated in the plugin root (on the same level with plugin.xml). I don't
want that the config files to be located inside the plugin jar.

Do you have any idea?
Thank you very much,
Doru
Re: Access configuration files in plugin root [message #280034 is a reply to message #280029] Thu, 27 January 2005 08:19 Go to previous message
Eclipse UserFriend
Originally posted by: dorus.savatech.ro

Doru Sular wrote:
> Hello everybody,
>
> I want to access programatically some configuration files which are
> situated in the plugin root (on the same level with plugin.xml). I don't
> want that the config files to be located inside the plugin jar.
>
> Do you have any idea?
> Thank you very much,
> Doru

I found the solution (on eclipse faq site)

Bundle bundle = Platform.getBundle("pluginid");
Path path = new Path("myfile");
URL fileURL = Platform.find(bundle, path);
InputStream in = fileURL.openStream();

regards,
Doru
Previous Topic:org.eclipse.perfmsr.core_0.0.0 Error
Next Topic:ERROR - org.eclipse.team.core.TeamException
Goto Forum:
  


Current Time: Sun Nov 09 14:07:39 EST 2025

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

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

Back to the top