Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Mission critical problem getting System properites
Mission critical problem getting System properites [message #265981] Sun, 08 August 2004 22:37 Go to next message
Eclipse UserFriend
Hi,

I have a Libs Plugin, a plugin that contains and exports a number of jar
files. Some of the jar files have files in the META-INF/services
folder. Some of the files access the data in the META-INF folder by
using the System.getProperties() method. In a normal Java program this
works with no problems. However, it does not recognize the properties
defined in the META-INF folder like normally.

Is there any work arounds for this? This is a pretty critical issue for
me.


Thank you,

Jesse
Re: Mission critical problem getting System properites [message #265983 is a reply to message #265981] Sun, 08 August 2004 23:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

As far as I know, the Eclipse plug-in classloader does not scan the meta-inf
directories for any files to be added to the System properties. You could
implement that by hand, in your plug-in's startup method by adding all the
values using System.getProperties().put("key", "value"); (if that works).

If you have access to the source, you can replace the call to
System.getProperties()
to load the proper properties file instead?

Chris


"jesse eichar" <jeichar@refractions.net> wrote in message
news:cf6nse$fju$1@eclipse.org...
> Hi,
>
> I have a Libs Plugin, a plugin that contains and exports a number of jar
> files. Some of the jar files have files in the META-INF/services
> folder. Some of the files access the data in the META-INF folder by
> using the System.getProperties() method. In a normal Java program this
> works with no problems. However, it does not recognize the properties
> defined in the META-INF folder like normally.
>
> Is there any work arounds for this? This is a pretty critical issue for
> me.
>
>
> Thank you,
>
> Jesse
Re: Mission critical problem getting System properites [message #266005 is a reply to message #265983] Sun, 08 August 2004 23:48 Go to previous message
Eclipse UserFriend
Chris Laffra wrote:
> As far as I know, the Eclipse plug-in classloader does not scan the meta-inf
> directories for any files to be added to the System properties. You could
> implement that by hand, in your plug-in's startup method by adding all the
> values using System.getProperties().put("key", "value"); (if that works).


I was afraid of that but I wanted some confirmation before I went ahead
and made the load method by hand.

Thanks for the help, I appreciate it.

Jesse
Previous Topic:create new file within plugin bundle
Next Topic:No sorting called on TableViewer.update()
Goto Forum:
  


Current Time: Thu May 08 06:22:41 EDT 2025

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

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

Back to the top