Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

feature.xml requires vs includes

In the feature.xml file you can specify dependencies on other features/plugins by using the requires element or the includes element.

What is the difference between them?

like image 272
Roland Avatar asked Apr 09 '14 15:04

Roland


2 Answers

The difference is that included features will be packaged with your feature when it is built. Required features are not packaged with the feature, but are expected to be present when you install the feature.

From the Eclipse help:

  • includes specifies features that become part of the defining feature as subfeatures
  • requires specify features that need to be present before installing the defining feature
like image 149
Roland Avatar answered Nov 08 '22 01:11

Roland


requires means your feature depends on another independent feature (such as one of the standard Eclipse features).

includes adds another feature as a child of your feature - so you can have one main feature with several children. If you look at the Eclipse About > Installation Details > Installed Software tab you will see several features with children.

like image 9
greg-449 Avatar answered Nov 08 '22 01:11

greg-449