Running multiple processes in Eclipse

When developing, I run my own mainfrom Eclipse and everything is fine, but now I'm working on a web application (using the built-in Jetty), which requires several processes. Currently, there are three, and more to come.

I can start all of them with a few clicks of the start button, but it becomes inconvenient. I use it a lot since the new process stops the old one, so I always work with the current version. If I do not forget to start the process (or embarrass them and start once several times without missing another).

I could write a trivial class that runs all of them in the background, but then I will not write them my own eclipse console, and there was no way to debug them.

So I ask: is there a way to get Eclipse to start multiple processes with a single action?

+4
source share
2 answers

You can solve this problem using the Composite launcher plugin .

Disclaimer: While the plugin page says that it supports Neon, this did not work for me when I tested. I managed to get it to work with the Mars.2 package.

Once the plugin is successfully installed, you will have a new “Composite launch” option in the launch configurations:

enter image description here

Select an option, and all you have to do is group the launch configurations that you want to run right away in this new configuration.

+2
0

Source: https://habr.com/ru/post/1651890/


All Articles