Feature patch a singleton? [message #68342] |
Fri, 17 July 2009 11:39  |
Eclipse User |
|
|
|
Is it possible to create a feature patch for a singleton plug-in?
When I run PDE build, I run into problems:
-----
Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
-----
I have a patch feature which is included in my product feature. That
patch feature includes my patched plug-in (0717 version). The patch
feature indicates the exact version of org.eclipse.platform to patch.
Note that if I modify the Manifest to remove the singleton clause, I can
run PDE build and install the product. But the behavior of the plug-in
is different at runtime and it doesn't work properly.
Thanks
Ben
|
|
|
|
|
|
Re: Feature patch a singleton? [message #599541 is a reply to message #68342] |
Fri, 17 July 2009 17:41  |
Eclipse User |
|
|
|
> Is it possible to create a feature patch for a singleton plug-in?
yes, that's possible.
> When I run PDE build, I run into problems:
>
> -----
> Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
> Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
> -----
let me double check: you're seeing this during building?
> I have a patch feature which is included in my product feature. That
> patch feature includes my patched plug-in (0717 version). The patch
> feature indicates the exact version of org.eclipse.platform to patch.
Do you have more context of when the above message is printed?
What you describe looks OK to me. PDE build shouldn't try to
resolve the old version.
Also: are you building headless or from the wizard? In the latter
case it might make a difference which plugins are taken from your
workspace and which ones from the host or target platform.
When building headless you might find some clues in the generated
ant build files.
> Note that if I modify the Manifest to remove the singleton clause, I can
> run PDE build and install the product. But the behavior of the plug-in
> is different at runtime and it doesn't work properly.
it might not even be using your patched version, it just doesn't
complain about two versions of the same plugin.
Stephan
|
|
|
Re: Feature patch a singleton? [message #599576 is a reply to message #68342] |
Mon, 20 July 2009 10:59  |
Eclipse User |
|
|
|
The problem is generally that PDE/Build does not have any special
knowledge of feature patches. It just thinks they are regular features.
So it sees both the original and the patch asking for different
versions of a singleton.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=84351#c21,
work around is setting "resolution.devMode=true"
-Andrew
Ben Vitale wrote:
> Is it possible to create a feature patch for a singleton plug-in?
>
> When I run PDE build, I run into problems:
>
> -----
> Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
> Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
> -----
>
> I have a patch feature which is included in my product feature. That
> patch feature includes my patched plug-in (0717 version). The patch
> feature indicates the exact version of org.eclipse.platform to patch.
>
> Note that if I modify the Manifest to remove the singleton clause, I can
> run PDE build and install the product. But the behavior of the plug-in
> is different at runtime and it doesn't work properly.
>
> Thanks
> Ben
|
|
|
|
Powered by
FUDForum. Page generated in 0.04383 seconds