[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[p2-dev] Use p2 to check for updates.
- From: manuel maier <manuel.maier@xxxxxxxxxxxxx>
- Date: Mon, 9 Jan 2012 13:59:44 +0100
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0
Here is what we wish to do:
- We have an installation of Eclipse at /dest.
- Installed there we have for example the IU
org.eclipse.sdk.feature.group installed from the integration builds
- Now we want to check on a daily basis if there is a new version of the
IU available and if so, update it.
(similiar to the Help -> Check for Updates in the Eclipse UI).
- This has to happen on command line level as we want to include this in
a batch job.
- Further we only want to download changes from eclipse.org(not the
whole drops every day). Because at first we tried to do an -uninstallIU
and then in a 2nd command -installIU. But this will produce too much
network overhead in my opinion.
- For now I tried to use the p2 director the following way:
eclipse -application org.eclipse.equinox.p2.director -vm
/opt/java/linux_64/jdk1.6.0_21/bin -nosplash -consoleLog -purgeHistory
-uninstallIU org.eclipse.sdk.feature.group -installIU
org.eclipse.update.install.features=true -roaming -profile
SDKProfile.win32.x86_64 -p2.os win32 -p2.arch x86_64 -p2.ws win32
The command does exactly what we want if there really is an update (say
from one Integration build to another). Old files get uninstalled, the
new one get installed and what stays the same is untouched.
But if nothing changes in the repository only the -uninstallIU operation
gets executed. And everything is removed.
Is this workflow somehow supported on commandline?