Run plugin updates outwith Eclipse UI
I'm trying to update the plugins for an Eclipse开发者_如何学运维 Galileo SR2 installation from the command line.
Something similar to this command (which asks for a specific feature):
java -jar org.eclipse.equinox.launcher_*.jar -application org.eclipse.update.core.standaloneUpdate -command update
Does anyone know if a command exists using p2 or any other Eclipse application runner?
I was able to upgrade Eclipse Classic Galileo from SR1 to SR2 using the following command:
java -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-application org.eclipse.equinox.p2.director
-installIU org.eclipse.sdk.ide
-uninstallIU org.eclipse.sdk.ide
-artifactRepository http://download.eclipse.org/releases/galileo
-metadataRepository http://download.eclipse.org/releases/galileo
-profile SDKProfile
-flavor tooling
-destination C:\eclipse
-p2.os win32 -p2.ws win32 -p2.arch x86
- The director doesn't do updates currently, but doing both uninstall and install is equivalent. See bug 279659
- The install/uninstall value
org.eclipse.sdk.ide
will depend on what exactly you have installed. Here this is the classic Eclipse SDK. If you are running something else you need to find the root installable unit id. Go to Help -> About -> Installation Details -> Installed Software. Look for the id of the root node of the tree. "Eclipse IDE for C/C++ Developers" isepp.package.cpp
. "Eclipse IDE for Java Developers" isepp.package.java
. - The -profile value
SDKProfile
also depends on what package you are running. Check theeclipse.p2.profile
property in your config.ini file. - The -destination C:\eclipse is the eclipse I am upgrading which is also the eclipse I'm using to run this command.
精彩评论