Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Feature dependency
Feature dependency [message #323940] Mon, 14 January 2008 05:25 Go to next message
Eclipse UserFriend
Hi,

I've created feature project and set its dependencies to one other
feature in my
projects set.

So edited feature called B depends on feature A.
Both of them have version number 1.1.0.qualifier. Dependency on A has
set that
it depends on version 1.1.0.qualifier "greater of equal".

My problem is that when I change version of A to 1.1.1.qualifier feature
B shows an
error icon in PDE editor of feature.xml (dependencies page).

Is there something wrong?

--
Piotr
Re: Feature dependency [message #323941 is a reply to message #323940] Mon, 14 January 2008 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Piotr Górny pisze:
> Hi,
[cut]

The second problem connected with the first is that when I export my RCP
application
I see the following entry in the feature.xml (of B feature) file under
features directory:

<requires>
<import feature="A" version="1.1.0.qualifier"
match="greaterOrEqual"/>
</requires>


Is it still ok?

--
Piotr
Re: Feature dependency [message #323943 is a reply to message #323941] Mon, 14 January 2008 06:06 Go to previous messageGo to next message
Eclipse UserFriend
Piotr Górny pisze:
> Piotr Górny pisze:
>> Hi,
> [cut]
>
> The second problem connected with the first is that when I export my RCP
> application
> I see the following entry in the feature.xml (of B feature) file under
> features directory:
>
> <requires>
> <import feature="A" version="1.1.0.qualifier"
> match="greaterOrEqual"/>
> </requires>
>
>
> Is it still ok?
>
> --
> Piotr
Later when I start application and try to make update of plugin B it
tells me,
that it needs a plugin A with version 1.1.0.qualifier or greater...
But the plugin A is in the application directory with version
1.1.0.200801141150.
Re: Feature dependency [message #324163 is a reply to message #323943] Fri, 18 January 2008 02:30 Go to previous messageGo to next message
Eclipse UserFriend
Piotr Górny pisze:
> Piotr Górny pisze:
>> Piotr Górny pisze:
>>> Hi,
>> [cut]

No one really knows? I'm in big trouble with this... and have no idea
how to fix it.
Re: Feature dependency [message #324182 is a reply to message #324163] Fri, 18 January 2008 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

On Fri, 18 Jan 2008 02:30:43 -0500, Piotr Górny <airform@o2.pl> wrote:

> Piotr Górny pisze:
>> Piotr Górny pisze:
>>> Piotr Górny pisze:
>>>> Hi,
>>> [cut]
>
> No one really knows? I'm in big trouble with this... and have no idea
> how to fix it.

Remove the ".qualifier" from your dependency requirement. You only need
the numeric part. i.e.

<requires>
<import feature="A" version="1.1.0" match="greaterOrEqual"/>
</requires>

The ".qualifier" is screwing things up as this will not get substituted in
this case (and really doesn't make sense here anyway).

Mark.
Re: Feature dependency [message #324194 is a reply to message #324182] Fri, 18 January 2008 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Mark Melvin pisze:
> On Fri, 18 Jan 2008 02:30:43 -0500, Piotr Górny <airform@o2.pl> wrote:
>
>> Piotr Górny pisze:
>>> Piotr Górny pisze:
>>>> Piotr Górny pisze:
>>>>> Hi,
>>>> [cut]
>>
>> No one really knows? I'm in big trouble with this... and have no idea
>> how to fix it.
>
> Remove the ".qualifier" from your dependency requirement. You only need
> the numeric part. i.e.
>
> <requires>
> <import feature="A" version="1.1.0" match="greaterOrEqual"/>
> </requires>
>
> The ".qualifier" is screwing things up as this will not get substituted
> in this case (and really doesn't make sense here anyway).
>
> Mark.

Thanks for your answer.
Unfortunately it doesn't help - I've tried it. The PDE still show an
error mark...
Re: Feature dependency [message #324196 is a reply to message #324194] Fri, 18 January 2008 14:28 Go to previous messageGo to next message
Eclipse UserFriend
Piotr Górny pisze:
> Mark Melvin pisze:
>> On Fri, 18 Jan 2008 02:30:43 -0500, Piotr Górny <airform@o2.pl> wrote:
[cut]

I've found even more strange problem. If I remove qualifier completly -
both from features
A and B (Version field on the Overview page) I still get error on B
feature Dependencies page,
when increasing A feature version from 1.1.0 to 1.1.1 - even when I have
Match rule = Greater or equal!

Don't I understand something?

--
Piotr
Re: Feature dependency [message #324217 is a reply to message #324196] Sun, 20 January 2008 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

On Fri, 18 Jan 2008 14:28:12 -0500, Piotr Górny <airform@o2.pl> wrote:

> Piotr Górny pisze:
>> Mark Melvin pisze:
>>> On Fri, 18 Jan 2008 02:30:43 -0500, Piotr Górny <airform@o2.pl> wrote:
> [cut]
>
> I've found even more strange problem. If I remove qualifier completly -
> both from features
> A and B (Version field on the Overview page) I still get error on B
> feature Dependencies page,
> when increasing A feature version from 1.1.0 to 1.1.1 - even when I have
> Match rule = Greater or equal!
>
> Don't I understand something?
>

I think I've lost context of the original problem here. Are you talking
about an error in the feature.xml editor in your workspace? I'm not sure
this is entirely unexpected unless you are feature-based self-hosting.
Have you tried exporting the features and plugins and testing your update
site that way?

Mark.
Re: Feature dependency [message #324224 is a reply to message #324217] Mon, 21 January 2008 02:27 Go to previous messageGo to next message
Eclipse UserFriend
Mark Melvin pisze:
> On Fri, 18 Jan 2008 14:28:12 -0500, Piotr Górny <airform@o2.pl> wrote:
>
[cut]
> I think I've lost context of the original problem here. Are you talking
> about an error in the feature.xml editor in your workspace? I'm not
> sure this is entirely unexpected unless you are feature-based
> self-hosting. Have you tried exporting the features and plugins and
> testing your update site that way?
>
> Mark.

My build is feature-based and I've got a few groups of plugins which I
packed
into features. Then I export product constructed of features.

Some features depends on others, so I've defined that. But on "Dependecies"
page of feature.xml editor I see error when I change version of one of
features
even if I have "Greater of equal" option enabled...
Re: Feature dependency [message #324254 is a reply to message #324224] Mon, 21 January 2008 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

On Mon, 21 Jan 2008 02:27:20 -0500, Piotr Górny <airform@o2.pl> wrote:

> Mark Melvin pisze:
>> On Fri, 18 Jan 2008 14:28:12 -0500, Piotr Górny <airform@o2.pl> wrote:
>>
> [cut]
>> I think I've lost context of the original problem here. Are you
>> talking about an error in the feature.xml editor in your workspace?
>> I'm not sure this is entirely unexpected unless you are feature-based
>> self-hosting. Have you tried exporting the features and plugins and
>> testing your update site that way?
>> Mark.
>
> My build is feature-based and I've got a few groups of plugins which I
> packed
> into features. Then I export product constructed of features.
>
> Some features depends on others, so I've defined that. But on
> "Dependecies"
> page of feature.xml editor I see error when I change version of one of
> features
> even if I have "Greater of equal" option enabled...

Sorry. I just checked my feature definitions and they also have errors in
my feature.xml editor. I don't think this really matters if you are using
the ".qualifier" mechanism because you are never going to have the correct
version in your workspace as this bit gets substituted at build time.
Have you tried your RCP app since removing the ".qualifier" from the end?
I think it should all work fine in a built and deployed app and you can
safely ignore the error markers in the editor in your workspace in this
case.

For reference, my feature dependencies look like this:

<requires>
<import feature="my.feature" version="2.2.0" match="compatible"/>
<import feature="org.eclipse.platform" version="3.3.0"
match="compatible"/>
</requires>

And I have an error marker on both of these items in the feature.xml.
There is an error marker on "org.eclipse.platform" because it isn't in my
workspace. The feature "my.feature" *is* in my workspace, but there is
still an error marker on it, and after thinking about this I agree that
there should not be an error marker there. I *do* have a compatible
version of the plugin in my workspace. It seems to me that the PDE is
doing something wrong here and a bug should be filed (if there isn't one
there already) as "2.2.0" should be compatible with "2.y.z.anything".
In any case - it all works as expected if I export this and run an update.

Your *original* problem was due to the fact that you included ".qualifier"
in your dependency requirement. You basically were requiring that the
installed pre-requisite feature had a version of *at least*
1.1.0.qualifier (the "qualifier" does not get replaced in the feature
dependency when you build), and you had installed version
1.1.0.200801141150, which is less than "1.1.0.qualifier" (200801141150 <
"qualifier" when matching feature versions).

Try exporting to your RCP app without the qualifier in the dependency
declaration as I suggested and see if it works as you expect.

Mark.
Re: Feature dependency [message #324362 is a reply to message #324254] Wed, 23 January 2008 10:03 Go to previous messageGo to next message
Eclipse UserFriend
Mark Melvin pisze:
> On Mon, 21 Jan 2008 02:27:20 -0500, Piotr Górny <airform@o2.pl> wrote:
>
[cut]

Hi Mark,
you're absolutely right - update site works when I get rid of qualifier
suffix.
Thanks a lot for your help.

--
Piotr
Re: Feature dependency [message #324365 is a reply to message #324362] Wed, 23 January 2008 10:18 Go to previous message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

On Wed, 23 Jan 2008 10:03:45 -0500, Piotr Górny <airform@o2.pl> wrote:

> Mark Melvin pisze:
>> On Mon, 21 Jan 2008 02:27:20 -0500, Piotr Górny <airform@o2.pl> wrote:
>>
> [cut]
>
> Hi Mark,
> you're absolutely right - update site works when I get rid of qualifier
> suffix.
> Thanks a lot for your help.
>
> --
> Piotr

No problem! Glad it worked for you.

M.
Previous Topic:Can plugin.xml contribute context menu items for an editor?
Next Topic:Find Results window
Goto Forum:
  


Current Time: Fri Jul 18 05:57:32 EDT 2025

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

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

Back to the top