|Fragment with osgi.nl platform filter [message #550164]
||Thu, 29 July 2010 12:21
| Stefan Stern
Registered: July 2009
We roll out an application on Eclipse base. Currently, we translate our
help bundle from German to English, but as translation is ongoing, we
can only offer the most important content for now.
The complete help (currently in German language only) provides 6
TOC-extensions. The English help only consists of a single TOC.
In order the help table of contents does not show 5 empty points, we
tried to move the extensions into fragments, which provide platform
filters checking the 'osgi.nl' property.
example from Manifest.MF:
Eclipse-PlatformFilter: (| (osgi.nl=en) (osgi.nl=en_*))
This works fine for launching the application from the development
environment. Exporting the help bundle with the "deploy plugins and
fragments" wizard works fine, too.
But using PDE build, with an Eclipse 3.6 basebuilder, fails with the
error message "Bundle 'com.example.help.de' failed to resolve". With
some debugging, I found out that
org.eclipse.osgi.internal.module.ResolverImpl lines 310-319 will check,
whether the Platform filter matches the platform. But as the platform
does not restrict languages, the filter does not apply.
Now, platform filters are used for os, ws and arch, usually. So, before
I file a bug and try to provide a patch, is the platform filter option
meant to control anything else besides os, ws and arch? Something like
help contributions or any other contribution that relies on the selected
Thanks and kind regards,
Powered by FUDForum
. Page generated in 0.01520 seconds