|
Re: Getting older versions from p2 [message #744567 is a reply to message #744130] |
Sat, 22 October 2011 07:09 |
|
On 2011-10-22 01:59, Miles Parker wrote:
> I'm trying to specify a lower version number for a particular feature and/or plugin, and having trouble getting bucky to
> accept it. I've tried specifying the version in both the plugin MANIFESTs and in the feature.xml. In both cases I get my
> favorite message, e.g. "No suitable provider for component org.eclipse.emf.edit:eclipse.feature/[2.7.0,2.7.0]"
>
Which is probably correct unless there's an artifact out there that has no qualifier. The qualifier segment is just as
valid as the three digit segments. If you want a constraint that selects 2.7.0.<don't care about qualifier> then you
must use a range like:
[2.7.0,2.7.1)
This range will give you all versions that start with 2.7.0 regardless of qualifier and it will exclude 2.7.1 and above.
|
|
|
|
Re: Getting older versions from p2 [message #745474 is a reply to message #745128] |
Sat, 22 October 2011 21:14 |
Miles Parker Messages: 1341 Registered: July 2009 |
Senior Member |
|
|
OK, I finally figured it out. I got the message above when I tried to specify a specific version from feature.xml. Here's what I'd tried..
1. All plugin MANIFEST.MF that reference the bundle have the version range specified, that is: org.eclipse.emf.edit;bundle-version="[2.7.0,2.7.1)"
2. My feature.xml includes the containing features without any version qualifiers, e.g. <includes id="org.eclipse.emf.edit" version="0.0.0"/>
But *that* didn't work. It then grabbed both 2.7.0 and 2.7.1 and failed during the build with an unsatisifed depenendency, presumably because emf.edit is a singleton and it had already loaded 2.7.1. Why is not exactly clear. But I have a theory why it grabbed 2.7.1 in the first place... Even though the current version of emf.edit.ui is still 2.7.0, the build for emf.edit.ui was created for Indigo SR1, which assumes the emf.edit 2.7.1 version. When I:
3. Removed both the emf.edit.ui and emf.edit features and instead used the plugin dependencies.
Buckminster then grabbed the emf.edit 2.7.0 and not the 2.7.1. I'm not sure my theory is correct though, because it was the SR1 build version of emf.edit.ui that ended up in the build. The only other explanation is that Buckminster pulled the emf.edit 2.7.1 feature even though I had requested the 2.7.0 emf.edit plugin.
whew...
[Updated on: Sat, 22 October 2011 21:15] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02504 seconds