Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Question about a Feature Dependencies "Compute" function
Question about a Feature Dependencies "Compute" function [message #554300] Sat, 21 August 2010 02:24 Go to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
I have two plugins, A & B. Plugin-A has a Require-Bundle dependency on
Plugin-B. I also have a feature that has "<plugin>" entries for both
plugins A & B. When I use the "Compute" button on the Dependencies tab of
the feature, it adds a "<requires><import plugin>" (Dependencies tab)
entry for Plugin-B. Is this correct?

Our build guy who set up our P2 builds on Hudson was surprised to hear
this and stated he actually has code in his build scripts that throws an
error when a plugin is listed in both the "<plugin>" and
"<requires><import plugin>" sections of a feature. I manually removed the
"<requires><import plugin>" entry for Plugin-B and the build worked fine.
His thinking I believe is that "<plugin>" entries indicate "build me"
whereas "<requires><import plugin>" (Dependencies tab) entries indicate
"find me as a P2 artifact, one of the <plugin> entries being built
depends on me". If that's correct, the build should not be looking for a
previous build of Plugin-B but rather the current build of Plugin-B
should be used to satisfy Plugin-A's dependency.

When it's put that way, I have to wonder if the "Compute" function added
the "<requires><import plugin>" entry for Plugin-B because I don't have
my dependencies set correctly somewhere.

What would you expect "Compute" to do in this situation? Any help greatly
appreciated.

Craig
icon9.gif  Re: Question about a Feature Dependencies "Compute" function [message #554926 is a reply to message #554300] Tue, 24 August 2010 18:40 Go to previous messageGo to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
Anyone? Is there a problem with the question? Is this not the correct group?

I'll attempt to rephrase:

If I have two plugins, one dependent on the other, included in a feature, the Compute button on the feature's Dependency tab lists the plugin depended upon as a dependency. Why?

Doesn't this indicate the plugin is a dependency of the feature build when in fact it isn't? I want the building of the feature to build both plugins, presumably the one depended upon first.

I suspect the button's behaviour is correct, I'm just not sure what it's indicating and how it's used in the feature build.

Again, any help greatly appreciated.

Craig

[Updated on: Tue, 24 August 2010 18:52]

Report message to a moderator

Re: Question about a Feature Dependencies "Compute" function [message #554931 is a reply to message #554926] Tue, 24 August 2010 19:01 Go to previous message
Austin Morgan is currently offline Austin MorganFriend
Messages: 42
Registered: July 2009
Member
Mine acts the same. I just don't know the answer to what it is supposed
to do.
Re: Question about a Feature Dependencies "Compute" function [message #606502 is a reply to message #554300] Tue, 24 August 2010 18:40 Go to previous message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
Anyone? Is there a problem with the question? Is this not the correct group?

Craig
Re: Question about a Feature Dependencies "Compute" function [message #606503 is a reply to message #554926] Tue, 24 August 2010 19:01 Go to previous message
Austin Morgan is currently offline Austin MorganFriend
Messages: 42
Registered: July 2009
Member
Mine acts the same. I just don't know the answer to what it is supposed
to do.
Previous Topic:Getting software updates working
Next Topic:feature group!?
Goto Forum:
  


Current Time: Tue Apr 23 18:01:58 GMT 2024

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

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

Back to the top