Community
Participate
Working Groups
In the effort to meet one of our themes for the 3.4 release, "Keep Tom Happy," we need to investigate adding a marker to optionally flag people who forget version ranges on Import-Package/Export-Package and Require-Bundle. It's a good OSGi practice to always include this information. This is a good bugday exercise too.
This should also be related to API tooling. It would be nice if the API tooling could introspect the client (importer/requirer) code to determine the lowest possible version range of the package/bundle which can be imported/required.
Darin, think about this in terms of API tooling too. Tom is trying to get fancy on us ;)
Chris, if you want to add this flag and turn it on by default, then all PDE templates would have to start generate version ranges.
It won't be on by default, it will be an optional preference. Only sadistic OSGi-only developers would do such a thing :)
ok, but that compiler preference tab is getting pretty long. we need to split at some point.
agreed, it's a PITA :(
We could use collapsible sections like JDT does to help with the usability
Let's target this for M5 and make this IGNORE by default
I'll just do this later
I envision there being two flags here: 1) consumers (ie., Import-Package, Require-Bundle) 2) producers (ie., Export-Package) We should only flag the consumer when the producer provides a version to import. I'll see if I can cook something up in the PDE kitchen for M5.
For right now, I think this will have to be set to ignore by default so that way we don't scare everyone once they download the latest build :)
Ok, with p2 going in for M6... I will do this in M7... too much going on right now for M6.
It makes me sad that this won't make it in 3.4. We shall wait for 3.5
Created attachment 111742 [details] org.eclipse.pde.patch Adds support for validating import package versions, exported package versions and require bundle versions.
Created attachment 111743 [details] mylyn/context/zip
FIXED in HEAD. > 20080905 I'm going to open other bugs for quickfixes.