Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Command line 3.5 update manager capability
Command line 3.5 update manager capability [message #487945] Fri, 25 September 2009 00:00 Go to next message
Fred Bickford IV is currently offline Fred Bickford IVFriend
Messages: 4
Registered: July 2009
Junior Member
Wondering if anyone had a pointer.... Looking for a command line Eclipse
3.5 capability to manage plugins/features like past versions of Eclipse ?

Scenario: I have used various update manager command line arguments to
query, install,enable, disable etc.. plugins in the past. I know the p2
installer changes this game most likely, yet was curious if their are
similar command line equiv in 3.5

Examples of what I have used in the past....


Eclipse 3.2.x----------------------------------------------
java -cp startup.jar org.eclipse.core.launcher.Main -application^
org.eclipse.update.core.standaloneUpdate^
-command search -from http://foo.ibm.com/update


Eclipse 3.3------------------------------------------------
java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar^
-application org.eclipse.update.core.standaloneUpdate -command^ listFeatures



Thanks in advance

Fred Bickford
Re: Command line 3.5 update manager capability [message #488047 is a reply to message #487945] Fri, 25 September 2009 12:50 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It's the p2 director you want:
http://wiki.eclipse.org/Equinox_p2_director_application
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/p2_director.html

That works for installing and uninstalling. You can list what's in the repo using -list ... to list what's in your current install you would use <installDir> /eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SD KProfile.profile as the repository

PW


Re: Command line 3.5 update manager capability [message #488187 is a reply to message #488047] Fri, 25 September 2009 19:13 Go to previous messageGo to next message
Fred Bickford IV is currently offline Fred Bickford IVFriend
Messages: 4
Registered: July 2009
Junior Member
Paul Webster wrote:
> It's the p2 director you want:
> http://wiki.eclipse.org/Equinox_p2_director_application
> http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/p2_director.html
>
>
> That works for installing and uninstalling. You can list what's in the
> repo using -list ... to list what's in your current install you would
> use <installDir>
> /eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SD
> KProfile.profile as the repository
>
> PW
>
Thanks, one of the things I have to do(not sure if p2 can do it) is
[from the command line(or programatically) enabled and disable, is this
something p2 doesnt allow ?
Re: Command line 3.5 update manager capability [message #489342 is a reply to message #488187] Fri, 02 October 2009 14:07 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Fred Bickford IV wrote on Fri, 25 September 2009 15:13
Thanks, one of the things I have to do(not sure if p2 can do it) is
[from the command line(or programatically) enabled and disable, is this
something p2 doesnt allow ?


What do you mean enable/disable?

Bundles can be installed or uninstalled into a profile. That's where p2 would help you. The director application can install/uninstall one or more installable units from the command line.

If you don't want a bundle to be loaded by OSGi when Eclipse starts, I *think* you'd have to modify the start level for that bundle.. but I don't think that will prevent it from getting loaded when it's needed by another bundle.

How frequently do you need to "enable/disable" and under what circumstances? Perhaps if you elaborate a bit more..
Previous Topic:How to figure out problems in the installation?
Next Topic:CXF
Goto Forum:
  


Current Time: Thu Apr 25 22:14:11 GMT 2024

Powered by FUDForum. Page generated in 0.03003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top