Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Tips on how to distribute platform-specific fragments?
Tips on how to distribute platform-specific fragments? [message #502339] Mon, 07 December 2009 18:34 Go to next message
Del Myers is currently offline Del MyersFriend
Messages: 82
Registered: July 2009
Member
Hello,

Sorry if this is a little bit of a simple question, but I'm afraid that I don't
really know the best way to do this.

I have a feature that has several plug-ins. There is one plug-in that relies on
platform specific code. So, it is a perfect candidate for using fragments to
distribute the code. I'm not really sure what the dependency/platform filter set
up should be for distributing with P2 should be, though.

For example, if I have my feature set up, should it have a set up like:

My Feature
-My Plug-in 1
-My Plug-in 2
-My Windows Fragment
-My Linux Fragment
-My Mac Fragment

What confuses me about this set-up is that it is obvious that all three
fragments should not be installed on every system. Will P2 work properly if I
include all 3 in the feature, but then set up the "Environment combinations" to
filter out invalid OS's? The Plug-ins and Fragments page of the feature editor
is a little confusing to me on this point. Thanks.

Del
Re: Tips on how to distribute platform-specific fragments? [message #502344 is a reply to message #502339] Mon, 07 December 2009 18:42 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

One of the simplest patterns is to include all fragments in your feature and then set their platform/arch/windowing system properties. See the platform feature [1] how it deals with org.eclipse.core.filesystem and those fragments.

[1] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.platfor m-feature/feature.xml?view=co

PW


Re: Tips on how to distribute platform-specific fragments? [message #502349 is a reply to message #502344] Mon, 07 December 2009 19:16 Go to previous message
Del Myers is currently offline Del MyersFriend
Messages: 82
Registered: July 2009
Member
Thanks, this will be helpful.

Paul Webster wrote:
> One of the simplest patterns is to include all fragments in your feature
> and then set their platform/arch/windowing system properties. See the
> platform feature [1] how it deals with org.eclipse.core.filesystem and
> those fragments.
>
> [1]
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.platfor m-feature/feature.xml?view=co
>
>
> PW
>
Previous Topic:Usage data reports?
Next Topic:Activities and Views/Perspectives/Editors
Goto Forum:
  


Current Time: Tue Apr 23 10:21:08 GMT 2024

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

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

Back to the top