Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Headless eclipse conflicts with running eclipse
Headless eclipse conflicts with running eclipse [message #169653] Fri, 12 December 2003 14:56 Go to next message
Eclipse UserFriend
Originally posted by: Michael-Scharf.gmx.de

Hi,

I am using a headless eclipse to do some workspace modification from
command line scripts. It works fine as long as there is no other instance
of eclipse running on the same workspace. If another (gui) eclipse is running,
headless won't start.

Has anybody had this problem?

Here are some ideas to solve this:

1. Run the headless ignoring that the workspace is locked
(probably a bad idea)

2. check if another eclipse is running on this workspace
- if no, run headless
- if yes, talk to the running eclipse via RMI, soap or xmlrpc

3. run a eclipse-headless daemon. Then attach to the daemon in the script
(as in solution 2 when a gui is running, but less startup overhead in
the script if no GUI is running, because it attaches to the running daemon).
If a GUI eclipse is started, shut down the headless eclipse daemon. This
would require some changes in the launch.Main.

Has anybody tried one of these solutions?
Any other solutions/ideas?

Michael
Re: Headless eclipse conflicts with running eclipse [message #169669 is a reply to message #169653] Fri, 12 December 2003 15:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myles_jeffery.hotmail.com

Why can't you just stop Eclipse and then run the your "headless" version?

"Michael Scharf" <Michael-Scharf@gmx.de> wrote in message
news:brckmm$kv5$1@eclipse.org...
> Hi,
>
> I am using a headless eclipse to do some workspace modification from
> command line scripts. It works fine as long as there is no other instance
> of eclipse running on the same workspace. If another (gui) eclipse is
running,
> headless won't start.
>
> Has anybody had this problem?
>
> Here are some ideas to solve this:
>
> 1. Run the headless ignoring that the workspace is locked
> (probably a bad idea)
>
> 2. check if another eclipse is running on this workspace
> - if no, run headless
> - if yes, talk to the running eclipse via RMI, soap or xmlrpc
>
> 3. run a eclipse-headless daemon. Then attach to the daemon in the script
> (as in solution 2 when a gui is running, but less startup overhead in
> the script if no GUI is running, because it attaches to the running
daemon).
> If a GUI eclipse is started, shut down the headless eclipse daemon.
This
> would require some changes in the launch.Main.
>
> Has anybody tried one of these solutions?
> Any other solutions/ideas?
>
> Michael
>
Re: Headless eclipse conflicts with running eclipse [message #169685 is a reply to message #169669] Fri, 12 December 2003 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Michael-Scharf.gmx.de

Myles Jeffery wrote:

> Why can't you just stop Eclipse and then run the your "headless" version?

The script might have to run regularly. It would be frustrating to quit
eclipse each time you run the script.

The script could be launched from another application. Requiring to
quit eclipse each time this script is run, is not acceptable.

OTOH, to start a full eclipse when this other app is running is also
not acceptable.

Michael
Re: Headless eclipse conflicts with running eclipse [message #169855 is a reply to message #169685] Fri, 12 December 2003 19:38 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Have you thought about using the Eclipse Ant support to accomplish what you
are doing?

Darins

"Michael Scharf" <Michael-Scharf@gmx.de> wrote in message
news:brclou$mk8$1@eclipse.org...
> Myles Jeffery wrote:
>
> > Why can't you just stop Eclipse and then run the your "headless"
version?
>
> The script might have to run regularly. It would be frustrating to quit
> eclipse each time you run the script.
>
> The script could be launched from another application. Requiring to
> quit eclipse each time this script is run, is not acceptable.
>
> OTOH, to start a full eclipse when this other app is running is also
> not acceptable.
>
> Michael
>
Previous Topic:RCP: removing invisible "Double Click to open Progress View"?
Next Topic:Eclipse and java files
Goto Forum:
  


Current Time: Wed Jul 03 17:30:32 GMT 2024

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

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

Back to the top