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?
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 subfeaturesrequires
specify features that need to be present before installing the defining featurerequires
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With