Adding a mat.p2.inf file (next to the mat.product file) which specifies version ranges for the included features solves the problem. I could build twice and update the RCP feature of the older build with the newer feature.
I will play some more with it and will publish another set of build results next week. Well I’ll also need to make the contribution to Indigo again to keep the versions of the bundles in sync.
So far I tried specifying range [1.1.0, 2.0.0). Does this seem reasonable, or shall I try to leave the end open (not sure yet if I can do it…)?
With this change the behavior is still that before the update the RCP feature is under the product, and after the update it is next to it. But I think this is something we can accept at the moment.
From: mat-dev-bounces@xxxxxxxxxxx [mailto:mat-dev-bounces@xxxxxxxxxxx] On Behalf Of Tsvetkov, Krum
Sent: Freitag, 20. Mai 2011 15:43
To: Memory Analyzer Dev list
Subject: Re: [mat-dev] MAT for Indigo
I think this describes the problem: http://aniefer.blogspot.com/2009/07/composing-and-updating-custom-eclipse.html
I got some help from colleagues working on Tycho, let’s see if I can get the problem fixed…
From: mat-dev-bounces@xxxxxxxxxxx [mailto:mat-dev-bounces@xxxxxxxxxxx] On Behalf Of Tsvetkov, Krum
Sent: Freitag, 20. Mai 2011 13:18
To: Memory Analyzer Dev list
Subject: Re: [mat-dev] MAT for Indigo
Andrew,
thanks for the hint! I built again and indeed I am not able to update the rcp with a similar error. I’ll look into it.
BTW I tested upgrading a MAT 1.0.1 and this works fine…
Krum
From: mat-dev-bounces@xxxxxxxxxxx [mailto:mat-dev-bounces@xxxxxxxxxxx] On Behalf Of Andrew Johnson
Sent: Donnerstag, 19. Mai 2011 13:30
To: Memory Analyzer Dev list
Subject: Re: [mat-dev] MAT for Indigo
I tried installing the update site http://download.eclipse.org/mat/1.1/snapshots/20110518/update-site/ into a slightly older Windows 32 MAT: API 1.1.0.201105180316
Your original request has been modified.
"Memory Analyzer RCP" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Memory Analyzer RCP 1.1.0.201105181232 (org.eclipse.mat.ui.rcp.feature.feature.group 1.1.0.201105181232)
Software currently installed: Memory Analyzer Tool 1.1.0 (org.eclipse.mat.ui.rcp.MemoryAnalyzer 1.1.0)
Only one of the following can be installed at once:
Memory Analyzer RCP 1.1.0.201105181232 (org.eclipse.mat.ui.rcp 1.1.0.201105181232)
Memory Analyzer RCP 1.1.0.201105180316 (org.eclipse.mat.ui.rcp 1.1.0.201105180316)
Cannot satisfy dependency:
From: Memory Analyzer Tool 1.1.0 (org.eclipse.mat.ui.rcp.MemoryAnalyzer 1.1.0)
To: org.eclipse.mat.ui.rcp.feature.feature.group [1.1.0.201105180316]
Cannot satisfy dependency:
From: Memory Analyzer RCP 1.1.0.201105180316 (org.eclipse.mat.ui.rcp.feature.feature.group 1.1.0.201105180316)
To: org.eclipse.mat.ui.rcp [1.1.0.201105180316]
Cannot satisfy dependency:
From: Memory Analyzer RCP 1.1.0.201105181232 (org.eclipse.mat.ui.rcp.feature.feature.group 1.1.0.201105181232)
To: org.eclipse.mat.ui.rcp [1.1.0.201105181232]
I also tried installing the update site into the RC1 stand-alone MAT. This added
Memory Analyzer RCP 1.1.0.201105181232 org.eclipse.mat.ui.rcp.feature.feature.group
to the existing setup of
Memory Analyzer Tool 1.1.0 org.eclipse.mat.ui.rcp.MemoryAnalyzer
Memory Analyzer Dependencies for standalone RCP 1.1.0.201105181232 org.eclipse.mat.dependencies.feature.feature.group
Equinox p2 Provisioning 2.0.0.v20100503-897HFZ-FdHjO2NQo0sD_Nt org.eclipse.equinox.p2.user.ui.feature.group
Is this to be expected?
Andrew
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU