Community
Participate
Working Groups
If versions are not specified on the bundles or features that constitute a product, the publisher should use version advice to find out this information.
Created attachment 126647 [details] start of a patch This patch starts the work towards using version advice in product publishing. There are a few questions - What namespace should be used to find the version advice? - When do we look for advice? (when version == null or 0.0.0, or both) - What do we do when we can't find version advice? (set null or 0.0.0) - Do we need to do this for other actions?
Created attachment 126648 [details] mylyn/context/zip
I have released changes using Ian's patch as a starting point. If we don't find advice we query for the latest iu. I used IInstallableUnit.NAMESPACE_IU_ID for the namespace for now. However, I'm not convinced in general of the need for namespace on version advice. I raised bug 267039
I added a second load method to accept a idSuffix to apply to the keys in the properties file. (ie ".feature.group") I have also modified the product ant task to accept version advice: <p2.publish.product ...> <advice kind="featureVersions" file="featureVersions.properties" /> <advice kind="pluginVersions" file="pluginVersions.properties" /> </p2.publish.product> The "featureVersions" supply the ".feature.group" suffix for the load.