Headless eclipse conflicts with running eclipse [message #169653] |
Fri, 12 December 2003 09:56  |
Eclipse User |
|
|
|
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 #169855 is a reply to message #169685] |
Fri, 12 December 2003 14:38  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.05133 seconds