[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[p2-dev] Updating products with features (was: Re: Testing P2 without SELF_Profile)
- From: Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx>
- Date: Mon, 26 Jul 2010 12:17:36 +0200
- Delivered-to: email@example.com
- Openpgp: id=0745A1E3
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:184.108.40.206) Gecko/20100713 Lightning/1.0b2 Thunderbird/3.1.1
Am 24.07.2010 20:20, schrieb Pascal Rapicault:
> Unfortunately, depending on what you want to achieve, this may not always work (see mail from Gunnar on Friday, July 23rd)
> In this case, a trick consist in exporting your application once, and starting your selfhosting instance with the following VM Args:
Just testing this and I wonder how self-updating is supposed to work in
combination with products & features.
I have the following setup:
- product "my.product"
- includes feature "my.feature"
- includes a few other features (intentionally nested)
- includes launcher
When I run the UpdateOperation with out specifying any IUs to update it
tries to update the root IU only. In my case this is "my.product". The
update works fine. However, I don't like to update the whole product
every time. Instead I just like to publish "my.feature" updates.
Thus, I invoke UpdateOperation and explicitly specify the currently
installed "my.feature" IU in the constructor (which I obtained from the
current profile). However, the UpdateOperation always fails in this case
because the installed "my.product" version depends on the installed
"my.feature" version and does not allow installing a newer feature version.
How does the Eclipse SDK handles this? I compared the profiles and
noticed a similar setup. However, the p2 update UI seems to ignore the
product-feature requirement and allows to install newer feature versions.