Headless eclipse conflicts with running eclipse [message #169653] |
Fri, 12 December 2003 14:56 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03820 seconds