Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Restart eclipse from command line
Restart eclipse from command line [message #331478] Tue, 09 September 2008 13:28 Go to next message
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 158
Registered: July 2009
Senior Member
Hi,

I have a perl script that install various plug-ins from the command line
using the equinox jar. What I am missing is a restart of eclipse ( if
running) to make the new plugins show up. Is it possible to restart
eclipse from the command line?

cheers,

//mike
Re: Restart eclipse from command line [message #331485 is a reply to message #331478] Tue, 09 September 2008 20:14 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The only way I know to do something like this was if the running eclipse
was running with the console on some port (-console 9000), you can then
telnet to that port and issue commands to the osgi framework. exit,
shutdown, and close will all stop the running eclipse, but I couldn't
get it to return the proper exit code 23 to cause a restart, so the perl
script would need to do the restart itself.

An alternative would be to install a plug-ins that opened a socket and
listened for commands to restart eclipse from within.

-Andrew
Mikael Petterson wrote:
> Hi,
>
> I have a perl script that install various plug-ins from the command line
> using the equinox jar. What I am missing is a restart of eclipse ( if
> running) to make the new plugins show up. Is it possible to restart
> eclipse from the command line?
>
> cheers,
>
> //mike
Re: Restart eclipse from command line [message #331493 is a reply to message #331478] Wed, 10 September 2008 11:08 Go to previous message
Eclipse UserFriend
Originally posted by: bullet.magnet.example.com

mikaelpetterson@hotmail.com (Mikael Petterson) wrote in
news:ac8036ed549bfac9f41da4e66ee2d897$1@www.eclipse.org:

> Hi,
>
> I have a perl script that install various plug-ins from the command line
> using the equinox jar. What I am missing is a restart of eclipse ( if
> running) to make the new plugins show up. Is it possible to restart
> eclipse from the command line?
>
> cheers,
>
> //mike
>

You could kill and relaunch the eclipse process

--
Life is complex, with real and imaginary parts.
Previous Topic:"convert line-delimiters" in Eclipse UI?
Next Topic:Editor status info placement
Goto Forum:
  


Current Time: Wed Jul 17 20:42:37 GMT 2024

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

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

Back to the top