Check that a specific field in the manifest.mf is equals to a predefined value Example : Check that Bundle-Localization is using the correct property file plugin
<myCustomRule implementation="com.github.bmaggi.tycho.rules.CheckManifestParameter">
<field>Bundle-Localization</field>
<value>plugin</value>
</myCustomRule>
Check that all required bundle have bundle-version set.
<myCustomRule implementation="com.github.bmaggi.tycho.rules.RequireBundleVersion">
</myCustomRule>
Check that required bundle are following a specific order. Parameter :
- order : the expected order by namespace, all non listed namespace will be at the end
- inverse : inverse the order, useful to pill up unreferenced namespace at the top
Example : Check that plugins starting by org.eclipse.ui are imported before plugins starting by org.eclipse.core
<myCustomRule implementation="com.github.bmaggi.tycho.rules.RequireBundleOrder">
<order>
<namespace>org.eclipse.ui</namespace>
<namespace>org.eclipse.core</namespace>
</order>
<inverse>false</inverse>
</myCustomRule>
Check that all package are exported
<myCustomRule implementation="com.github.bmaggi.tycho.rules.CheckExportPackage">
</myCustomRule>
Check that the bundle contained in the namespace is reexported
<myCustomRule implementation="com.github.bmaggi.tycho.rules.CheckReexportBundle">
<namespace>org.eclipse.ui</namespace>
</myCustomRule>
Check that the manifest is following the standard order. This order is hard-coded for the moment.
<myCustomRule implementation="com.github.bmaggi.tycho.rules.ManifestHeaderOrder">
</myCustomRule>
Check the feature provider-name (vendor) ( Should change to check different values in the feature.xml file)
<myCustomRule implementation="com.github.bmaggi.tycho.rules.RequireFeatureProvider">
<provider>myself</provider>
</myCustomRule>
Check the extension point to ensure that there is documentation
<myCustomRule implementation="com.github.bmaggi.tycho.rules.ExtensionPointDocumentation">
<provider>myself</provider>
</myCustomRule>