This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 281224 - [product] not added to feature based product without deltapack
Summary: [product] not added to feature based product without deltapack
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: 3.5.2   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 282221 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-23 10:50 EDT by Andrew Niefer CLA
Modified: 2010-01-04 14:32 EST (History)
7 users (show)

See Also:
caniszczyk: review+
darin.eclipse: review+
curtis.windatt.public: review+


Attachments
org.eclipse.pde.patch (3.70 KB, patch)
2009-08-05 17:21 EDT, Chris Aniszczyk CLA
no flags Details | Diff
org.eclipse.pde.patch (3.71 KB, patch)
2009-10-22 18:13 EDT, Chris Aniszczyk CLA
no flags Details | Diff
mylyn/context/zip (1.52 KB, application/octet-stream)
2009-10-22 18:13 EDT, Chris Aniszczyk CLA
no flags Details
new patch (17.94 KB, patch)
2009-10-23 13:40 EDT, Andrew Niefer CLA
no flags Details | Diff
updated (18.35 KB, patch)
2010-01-04 14:31 EST, Darin Wright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2009-06-23 10:50:33 EDT
When exporting a product UI should automatically add the launcher jar and fragment to the product.

In the case of products based on plugins, this happens in ProductExportWizard.getPluginModels.

In the case of product based on features, there is only FeatureExportOperation.createFeature where the executable feature (getDeltaPackFeature) is added.

However, if the deltapack is not in the target then launcher jar and fragments are not added to feature based products.

We should fall back and add the individual plugin and fragment when the deltapack is not present.
Comment 1 Erdal Karaca CLA 2009-07-01 05:35:04 EDT
I encounterd this bug, too.

Exporting a product based on features worked in pre 3.5, even if no delta pack was installed...
This seems to be a backward compatibility break, does it not?
Comment 2 Chris Aniszczyk CLA 2009-07-02 10:24:12 EDT
*** Bug 282221 has been marked as a duplicate of this bug. ***
Comment 3 Chris Aniszczyk CLA 2009-07-09 15:07:54 EDT
Andrew, any problems with this potentially going in for 3.5.1?

I'm going to look at coming up with a fix 
Comment 4 Chris Aniszczyk CLA 2009-08-05 17:21:29 EDT
Created attachment 143562 [details]
org.eclipse.pde.patch

My current line of thinking

1) remove check in ProductExportWizard
2) add everything to FeatureExportOperation

What are your thoughts on this approach Andrew?

Should I also set the proper os/arch/ws on the launcher fragments?
Comment 5 Darin Wright CLA 2009-08-25 17:15:42 EDT
Chris, is this still in your bucket for 3.5.1? or do we need to move it to 3.5.2/3.6?
Comment 6 Chris Aniszczyk CLA 2009-08-25 17:16:28 EDT
I'm going to come up with an updated patch tonight, but there's probably not enough time for 3.5.1 testing if the deadline is indeed tomorrow.
Comment 7 Chris Aniszczyk CLA 2009-10-22 18:13:43 EDT
Created attachment 150318 [details]
org.eclipse.pde.patch

An updated patch.

Will let Andrew review.
Comment 8 Chris Aniszczyk CLA 2009-10-22 18:13:48 EDT
Created attachment 150319 [details]
mylyn/context/zip
Comment 9 Chris Aniszczyk CLA 2009-10-22 18:15:01 EDT
Do you see anything wrong with this Andrew?

I was able to export the mail app that was feature based.
Comment 10 Darin Wright CLA 2009-10-23 11:41:36 EDT
Looks OK to me, but Andrew will know best/should have the final say.
Comment 11 Andrew Niefer CLA 2009-10-23 13:40:08 EDT
Created attachment 150391 [details]
new patch

Even though this is when the deltapack is not present, if the target contains launcher fragments for more than one platform then export would break without the os,ws,arch attributes on the inclusion.

Here is a revised patch which gets the launcher fragment corresponding to the configuration being exported.  We really expect the configurations array to be length 1 (since multi-platform exit is only enable when the deltapack is present), but the patch works for any number of configurations.

Because this works by matching the Eclipse-PlatformFilter of the fragment against the configuration, we also need to be aware of nl fragments so we don't accidentally choose them instead of the real launcher fragment.  We wouldn't need to consider nl fragments if we simply built the fragment name from <ws>.<os>.<arch>, but there are special cases there for the mac, so I think it is simpler this way.
Comment 12 Chris Aniszczyk CLA 2009-10-24 14:19:27 EDT
Looks good via testing.

I committed this to HEAD.

Leaving open for 3.5.2 inclusion.

We don't need PMC approval for 3.5.2 yet?
Comment 13 Curtis Windatt CLA 2009-10-28 13:01:04 EDT
I am also ok with this patch for 3.5.2 inclusion.
Comment 14 Andrew Niefer CLA 2009-10-28 13:08:09 EDT
(In reply to comment #12)
> We don't need PMC approval for 3.5.2 yet?

I believe at this time we only need the component lead to approve.
Comment 15 Darin Wright CLA 2009-10-28 13:17:44 EDT
(In reply to comment #12)
> We don't need PMC approval for 3.5.2 yet?

There are no rules pubished yet (that I know of). So we should have component owner approval and a code review by a peer committer. We're good for this bug.
Comment 16 Darin Wright CLA 2010-01-04 14:31:54 EST
Created attachment 155267 [details]
updated

updated copyrights on the patch.
Comment 17 Darin Wright CLA 2010-01-04 14:32:33 EST
Released to 3.5.2