Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Migrating from setProgramProperty to addProgramProperty?

There is a way to fix this but I don't know if you want to bother.
Basically the IU that uses this action could set a metarequirement on the p2 IU that contains the implementation of the action.
If the install is not M6 then the installation will fail with some obscur message.
You could have it go through by making the IU being meta-required be a patch that patches the new version of the p2 bundle in but this may be overboard.

HTH

On 2011-03-15, at 6:45 PM, Stephan Herrmann wrote:

> Hi,
> 
> I recently consumed the new touchpoint action addProgramProperty from [1]
> and all seemed to work fine, but just as I'm doing final tests for our M6
> contribution I noticed that this change breaks upgrading of our feature:
> 
> An error occurred while installing the items
> session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=[R]org.eclipse.objectteams.otequinox 0.8.0.201101290806 --> [R]org.eclipse.objectteams.otequinox 0.8.0.201103151729, action=org.eclipse.equinox.internal.p2.engine.MissingAction).
> No action found for: org.eclipse.equinox.p2.touchpoint.eclipse.addProgramProperty.
> No action found for: org.eclipse.equinox.p2.touchpoint.eclipse.addProgramProperty.
> 
> In order to use the new touchpoint action users must already have M6 but
> due to some dependencies they cannot update the SDK without also updating
> our feature in the same step. I wasn't aware that the touchpoint action was
> also performed during upgrade (maybe just because the action changed?).
> 
> Does anyone have some quick advice how we could avoid the not-yet-existent
> touchpoint action from being performed when upgrading?
> Otherwise I will have to revert to setProgramProperty for M6 and do the change
> only in M7 (upgrading from M6 to M7 should then work fine).
> 
> thanks,
> Stephan
> 
> 
> 
> [1] https://bugs.eclipse.org/329784 Touchpoint instruction for incremental changes to program properties
> _______________________________________________
> cross-project-issues-dev mailing list
> cross-project-issues-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev



Back to the top