Exporting an RCP feature-based app (from bug 140960) [message #449646] |
Wed, 17 May 2006 10:42 |
Eclipse User |
|
|
|
Alex --
As you suggested, continuing the discussion here from
https://bugs.eclipse.org/bugs/show_bug.cgi?id=140960
<<
My understanding is that the product export only exports plugins that are
defined as part of the product, and *not* the ones that it depends on. So
although your feature is correct in terms of its dependencies, the export
wizard does not solve those dependencies for you.
You have two choices:
1) Copy the plugins that you depend on manually to the plugins/ folder. The
reason it works in Eclipse and doesn't in your exported product is that Eclipse
already contains your dependencies, whilst your exported product doesn't.
>>
As a short-term solution this might work; but if one has to do that, doesm't that mean that the
export-wizard is kind of broken? And it is certainly no long-term solution, which is why the
export-wizard was created. Moreover, how to determine those dependencies? (And if I knew them,
wouldn't it just be as easy to add them to the feature-spec?)
<<
2) Make your feature depend on the RCP feature. When the product feature is
exported, it will also export the RCP feature for you. The RCP feature contains
org.eclipse.ui and org.eclipse.core.runtime, as well as their dependencies
(e.g. SWT, JFace). It's hard to see what's in RCP that you wouldn't need, to be
honest.
Product export works at the feature level, not the plugin level. The only
reason why the plugins get exported at all are as an artifact of the feature.
So depending on the RCP feature is the correct way to go.
>>
BUT -- the posted toy project *is* feature-based and *does* depend upon the RCP feature. Moreover,
my real project, also feature-based, does *not* depend upon the RCP feature, and yet exports correctly.
<<
FWIW the purpose of this bug was to complain about plugin point and plugin
point extensions, which I believe has already been resolved -- consequently,
this bug should probably be closed WORKSFORME, since now the discussion has
meandered onto product exporting. It should probably also be taken up as a
discussion on the newsgroups/EclipseZone, where I'd be more than happy to
continue the discussion.
>>
thanks,
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.02475 seconds