Class loading from local jars [message #294225] |
Mon, 07 November 2005 09:40  |
Eclipse User |
|
|
|
Originally posted by: murraybeaton.hotmail.com
Hi. I have a question regarding the recommended way to override installed
plugin jars with local copies.
The situation I've found myself in is a requirement to use backlevel jars
for a particular plugin project. I have the jars in hand, but do not want
to install as per regular feature update, for fear of backleveling the
dependencies of some other plugins. What I require is for my plugin, and
mine alone, to use these backleveled jars. I added them to my plugin,
identified them as runtime jars for my project, etc. but it seems the
installed versions are still being used. Perhaps this is caused by my
immediate dependencies having dependencies on the installed versions ...
ie. indirectly triggering load.
Anybody have any suggestions on best practices here? I'm looking for the
safest way for my plugin to leverage these jars, without jeopardizing the
existing plugin stack.
thanks
|
|
|
|
|
Re: Class loading from local jars [message #294231 is a reply to message #294230] |
Mon, 07 November 2005 10:28  |
Eclipse User |
|
|
|
Originally posted by: eclipse.bettsockentraeger.de
Murray Beaton wrote:
> Ok ... wouldn't that be the equivalent of specifying them as runtime
> jars in your plugin project? This was my first approach, but it seems
> as though they are loaded from the installed versions.
It should be but keep in mind that any dependencies will get resolved
befor your runtime classpath is loaded (afaik).
> My guess is they
> are being loaded via one of my dependencies, but I have to verify. Is
> the plugin.xml dependency order respected during load and/or runtime?
I haven't checked it but it should be since you can specify the order of
the dependencies.
> if
> so, then I can see how adding a new plugin dependency can work -
> provided it appears earlier than the other dependencies that are
> triggering the load.
>
> thx.
>
Keep us updated how it works out.
Regards
Stefan
|
|
|
Powered by
FUDForum. Page generated in 0.04444 seconds