Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Plugin Product vs Feature Product

DZone's Guide to

Plugin Product vs Feature Product

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

That is THE question ??? And it seems quite difficult to have a clear answer. Let’s recapitulate the information I gathered on this topic mainly related to build issues.  Please feel free to comment on this post in order to complete or to correct what I am saying:

Plugin Products:

  • No problem when building (Gui or headless) => all the required (the same than the required plugins computed in the launch configuration dialog when debugging the app) plugins are present
  • The RCP application disk footprint is optimized !! No useless plugins
  • No features are exported: as a result the features list tab of about dialog is empty !!!
  • It seems that plugin products are not recommended for RCP with self update (I didnd’t tested that yet) ???

Feature Products:

  • When exporting (headless), the only present plugins and features are the one listed in the .product file
  • Need to create a “dependencies” features including all the required plugins OR depend on all the features containing the required plugins => bring a lot of useless plugins
  • Features listed in the about dialog

In my case, I decided to use a Feature Product and then to “manually” create a feature including all the 90 plugins required by my RCP.

Because I am lazy and hate repetitive tasks, I wrote a simple Java main parsing a launch configuration file (.launch located in the workspace metadata folder) and generating from a template the feature with all the required dependencies. Is there any other existing way to do that ??

Hope this can help others, and if you need my simple Java feature dependency creator, just ask it.

Manu

 

From http://manuelselva.wordpress.com/2010/07/07/plugin-product-vs-feature-product/

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}