[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] update manager (p2)

Hi all,

I am using p2 in mine application (it isn't rcp, but it is OSGi application).

How to update jars ? Do I have to uninstall some feature and then to install new version of it, like in the following lines of code:

 iStatus = ProvisioningHelper.uninstall(getAgent(), untiId, null, getProfile(), new ProgressMonitor());
//_provremove

 iStatus = ProvisioningHelper.install(getAgent(), untiId, version, getProfile(), new ProgressMonitor());
//_provinstall

Probably, there is a differenet way to do that..? Is Is there some kind of "feature update"? For example it is safer to download new jars, and after that to delete the old ones.

Thank you,

Ivana