Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » how to Add local archive and install in eclipse by commands
how to Add local archive and install in eclipse by commands [message #642175] Tue, 30 November 2010 09:08 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2010
Junior Member
I have a .zip file to be added into eclipse using Help-->software update-->Add Site-->Archive-->Install. This works fine this way. I am automating this action and need it to be added using command line.
I got to know this is possible using P2 director but I am facing 2 issues here...

1. I don't see any files under p2\org.eclipse.equinox.p2.director folder
2. Also can someone tell me what would be the exact command line in order to achieve this. I have .zip file placed in C:\

Thanks in advance.
Re: how to Add local archive and install in eclipse by commands [message #642465 is a reply to message #642175] Wed, 01 December 2010 13:02 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The command line to install from a zipped repo using the eclipse install
itself would just use the jar URL:

eclipse/eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository jar:file:///Users/Pascal/repo.zip!/ \
-installIU org.eclipse.releng.tools.feature.group

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: how to Add local archive and install in eclipse by commands [message #1834373 is a reply to message #642175] Mon, 09 November 2020 09:31 Go to previous messageGo to next message
Nikhil Singh is currently offline Nikhil SinghFriend
Messages: 17
Registered: January 2020
Junior Member
Sir I have tried the following command:

eclipse -application org.eclipse.equinox.p2.director -repository jar:file:/D:/myFeaturePath/feature.zip!/ -insstallIU org.eclipse.releng.tools.feature.group

It does not do anything.
Please help.
Re: how to Add local archive and install in eclipse by commands [message #1834402 is a reply to message #1834373] Mon, 09 November 2020 19:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33229
Registered: July 2009
Senior Member
Did you mean -installIU instead of -insstallIU?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to Add local archive and install in eclipse by commands [message #1834436 is a reply to message #1834402] Tue, 10 November 2020 10:51 Go to previous messageGo to next message
Nikhil Singh is currently offline Nikhil SinghFriend
Messages: 17
Registered: January 2020
Junior Member
Yes correct -installIU it is. That was typo but still it does not work. Eclipse loading screen comes up but the closes automatically. Is my command correct?
Re: how to Add local archive and install in eclipse by commands [message #1834437 is a reply to message #1834436] Tue, 10 November 2020 11:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33229
Registered: July 2009
Senior Member
It looks like you're running on Windows, so I'd use eclipsec.exe instead of eclipse.exe so that you get a console. I'd also pass in the -consoleLog argument so that if there are logged exceptions they are printed to the console:

https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

I wonder if you're missing things like the -destination and -profile:

https://help.eclipse.org/2020-09/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Problem Restarting after RCP Update from Java 8 to Java 11
Next Topic:ServletBridge returns multiple values for empty url parameters (?param=)
Goto Forum:
  


Current Time: Wed Oct 16 02:20:50 GMT 2024

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

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

Back to the top