Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 109132 - Fragment Export fails when a Platform Filter is specified
Summary: Fragment Export fails when a Platform Filter is specified
Status: RESOLVED DUPLICATE of bug 114779
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 08:02 EDT by ted stockwell CLA
Modified: 2007-05-15 01:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ted stockwell CLA 2005-09-09 08:02:53 EDT
I have created a fragment for a new SWT implementation and I cannot successfully
export the fragment via the PDE.
I have tracked the problem down to the fact that I have specified
Eclipse-PlatformFilter in my MANIFEST.MF.

Here is an easy way to reproduce the problem...

...Create a new Fragment Project.  Do not create a Java project.  Create an OSGi
manifest.  Choose org.eclipse.swt as the host plugin.

...Now, export the fragment..the export will succeed.

...go back to the fragment's manifest and specify '(osgi.ws=rswt)' as the
Platform Filter.

...try to export the fragment, the export will produce nothing.  No error
messages, and no output of any kind.

----------------------------

On a related note...I checked out other SWT fragments and they specify NO
Platform Filter.  I suppose that's because the Platform Filter is not really
needed if you are gonna deploy just A SINGLE SWT fragment for every platform,
like Eclipse currently does.

However, in my case I am working on a REMOTE version of SWT.  My implementation
of SWT makes it possible to run an SWT application as either a fat-client
application or as a thin-client application.  I expected to be able to create a
deployment that contained BOTH the thin-client application and the fat-client
application.  
I have a working example of this scenario, but until now I built my deployments
by hand.  Now I want to automate my deployment process via the PDE but this
Platform Filter thing is in my way.
Comment 1 Jeff McAffer CLA 2005-09-18 21:37:51 EDT
When you did hte export did you select rswt as the windowsystem?
Comment 2 ted stockwell CLA 2005-11-28 08:32:20 EST
(In reply to comment #1)
> When you did hte export did you select rswt as the windowsystem?
> 

Sorry for the delay, just now noticed your question.
I retried with v3.1.1, with both rswt set as the windowsystem and not set as the windowsystem.  Still no luck.

I also checked the workspace error log for a hint but didn't anything relevant there.
Comment 3 Mark Rogalski CLA 2006-08-24 10:51:25 EDT
This is a big problem when developing for devices which have a variety of architecture types. Can this get fixed for Eclipse 3.3?  This worst part is that there is no error reported. It just doesn't work and the user will have a great deal of trouble figuring out what is wrong. +1
Comment 4 Pascal Rapicault CLA 2006-12-15 12:49:09 EST
The current workaround is to:
-have the fragment carry its platform filter (now all swt fragments have a filter)
-create a feature that includes the fragment and position os/ws/arch in the feature as well
-open the target platform preferences and set the environment to your targeted environment. For example set ws to rswt: note that you can type in a value.
-export

In the end what is missing in this case is the ability to pick the target when exporting a plugin or a feature. Also maybe a button similar to the validate target could be used here to say what will be exported or not based on the current settings.
Comment 5 Wassim Melhem CLA 2007-05-15 01:39:14 EDT

*** This bug has been marked as a duplicate of bug 114779 ***