Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Import-Package and feature requirements
Import-Package and feature requirements [message #381335] Sat, 29 November 2008 08:13 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-news.lemmster.de

Hi,

from [1] I take it, that BM cannot deal with Import-Package yet which
exactly aligns with my build problems. E.g. org.osgi.services is only
listed as an Import-Package stmt and thus never materialized.

What's the best way to work around this? Can't BM just materialize
what's listed as requirements in the enclosing feature [2]?

Markus


[1] http://dev.eclipse.org/mhonarc/lists/buckminster-dev/msg0019 7.html
[2]
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/rel eng/features/org.eclipse.ecf.core-feature/feature.xml?revisi on=1.146&root=RT_Project&view=markup
Re: Import-Package and feature requirements [message #381337 is a reply to message #381335] Sat, 29 November 2008 21:28 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Marcus,
It's impossible to resolve based on package names alone when there is no
scope in which the resolution takes place. There's just no way to
convert a package name (or names) into a repository location.

So the answer is yes, you must have a feature that defines the
resolution so that the plug-ins that provide the needed packages are
included.

Regards,
Thomas Hallgren


Markus Kuppe wrote:
> Hi,
>
> from [1] I take it, that BM cannot deal with Import-Package yet which
> exactly aligns with my build problems. E.g. org.osgi.services is only
> listed as an Import-Package stmt and thus never materialized.
>
> What's the best way to work around this? Can't BM just materialize
> what's listed as requirements in the enclosing feature [2]?
>
> Markus
>
>
> [1] http://dev.eclipse.org/mhonarc/lists/buckminster-dev/msg0019 7.html
> [2]
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/rel eng/features/org.eclipse.ecf.core-feature/feature.xml?revisi on=1.146&root=RT_Project&view=markup
Re: Import-Package and feature requirements [message #381339 is a reply to message #381337] Sun, 30 November 2008 07:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.lemmster.de

Thomas Hallgren wrote:
> Hi Marcus,
> It's impossible to resolve based on package names alone when there is no
> scope in which the resolution takes place. There's just no way to
> convert a package name (or names) into a repository location.
>
> So the answer is yes, you must have a feature that defines the
> resolution so that the plug-ins that provide the needed packages are
> included.
>
> Regards,
> Thomas Hallgren

Hi Thomas,

I don't see a different whether my feature includes or requires a
bundle. Both define the full bundle name.

E.g. it doesn't work without making the bundle included in the feature
instead of just a requirement [1].

Markus

[1]
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/rel eng/features/org.eclipse.ecf.core-feature/feature.xml?root=R T_Project&r1=1.146&r2=1.147
Re: Import-Package and feature requirements [message #381342 is a reply to message #381339] Mon, 01 December 2008 08:11 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Markus Kuppe wrote:
> Thomas Hallgren wrote:
>> Hi Marcus,
>> It's impossible to resolve based on package names alone when there is no
>> scope in which the resolution takes place. There's just no way to
>> convert a package name (or names) into a repository location.
>>
>> So the answer is yes, you must have a feature that defines the
>> resolution so that the plug-ins that provide the needed packages are
>> included.
>>
>> Regards,
>> Thomas Hallgren
>
> Hi Thomas,
>
> I don't see a different whether my feature includes or requires a
> bundle. Both define the full bundle name.
>
There is a difference and it matters in this case:

If you say that your feature *includes* a bundle, then that bundle will
be installed (materialized) when the feature is installed.

If you say that your feature *requires* a bundle that means that the
feature cannot be installed unless the target platform (TP) fulfils the
requirement. The feature will *not* install the required bundle.

Expressing a TP requirement is not sufficient if your objective is to
define a scope for package resolution that goes beyond what's already
installed in your TP + your feature inclusions. If your TP however
includes the required bundles, then the resolution should be OK.

- thomas
Re: Import-Package and feature requirements [message #381344 is a reply to message #381342] Mon, 01 December 2008 08:38 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
Thomas Hallgren wrote:

> There is a difference and it matters in this case:
>
> If you say that your feature *includes* a bundle, then that bundle will
> be installed (materialized) when the feature is installed.
>
> If you say that your feature *requires* a bundle that means that the
> feature cannot be installed unless the target platform (TP) fulfils the
> requirement. The feature will *not* install the required bundle.
>
> Expressing a TP requirement is not sufficient if your objective is to
> define a scope for package resolution that goes beyond what's already
> installed in your TP + your feature inclusions. If your TP however
> includes the required bundles, then the resolution should be OK.

In my case the TP is empty and BM is supposed to materialize it so the
feature can be build. I don't understand why BM cannot use the feature's
requirements (and maybe even the .target) in order to create the TP.
Just so I don't have to list the requirements redundantly in a cspex [1].

Markus

[1]
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/rel eng/features/org.eclipse.ecf.core-feature/buckminster.cspex? revision=1.3&root=RT_Project&view=markup
Re: Import-Package and feature requirements [message #381413 is a reply to message #381342] Mon, 01 December 2008 08:38 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
Thomas Hallgren wrote:

> There is a difference and it matters in this case:
>
> If you say that your feature *includes* a bundle, then that bundle will
> be installed (materialized) when the feature is installed.
>
> If you say that your feature *requires* a bundle that means that the
> feature cannot be installed unless the target platform (TP) fulfils the
> requirement. The feature will *not* install the required bundle.
>
> Expressing a TP requirement is not sufficient if your objective is to
> define a scope for package resolution that goes beyond what's already
> installed in your TP + your feature inclusions. If your TP however
> includes the required bundles, then the resolution should be OK.

In my case the TP is empty and BM is supposed to materialize it so the
feature can be build. I don't understand why BM cannot use the feature's
requirements (and maybe even the .target) in order to create the TP.
Just so I don't have to list the requirements redundantly in a cspex [1].

Markus

[1]
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/rel eng/features/org.eclipse.ecf.core-feature/buckminster.cspex? revision=1.3&root=RT_Project&view=markup
Re: Import-Package and feature requirements [message #381415 is a reply to message #381413] Mon, 01 December 2008 08:52 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Markus Alexander Kuppe wrote:
> Thomas Hallgren wrote:
>
>> There is a difference and it matters in this case:
>>
>> If you say that your feature *includes* a bundle, then that bundle will
>> be installed (materialized) when the feature is installed.
>>
>> If you say that your feature *requires* a bundle that means that the
>> feature cannot be installed unless the target platform (TP) fulfils the
>> requirement. The feature will *not* install the required bundle.
>>
>> Expressing a TP requirement is not sufficient if your objective is to
>> define a scope for package resolution that goes beyond what's already
>> installed in your TP + your feature inclusions. If your TP however
>> includes the required bundles, then the resolution should be OK.
>
> In my case the TP is empty and BM is supposed to materialize it so the
> feature can be build. I don't understand why BM cannot use the feature's
> requirements (and maybe even the .target) in order to create the TP.
> Just so I don't have to list the requirements redundantly in a cspex [1].
>
>
BM would violate the contract if it were to materialize the
requirements. The sole reason for separating requirements from
inclusions is to be able to create features that has prerequisites on
the TP so that not all features need to be self sufficient. A feature
with unfulfilled requirements is supposed to fail when installed, not
download and install what it is missing. You have two options:

1. Make your current feature include everything that it will need, or
2. Create another feature that a) includes your current feature and b)
includes all the TP components that your current feature will require
but does not include.

- thomas
Previous Topic:Unpredictable resolution failures using remote PDE map files
Next Topic:eclipse.build actor failed - cannot find java.lang.Enum; Java 1.5 compliance preference set
Goto Forum:
  


Current Time: Wed Apr 24 18:35:28 GMT 2024

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

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

Back to the top