Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running multiple launch configurations at once

I have several launch configurations in Eclipse each launching the same Java program but with different parameters.

Now is it possible to run all of these at once (with one mouse click) instead of selecting each of it separately and launching it?

like image 467
clamp Avatar asked Oct 29 '10 15:10

clamp


People also ask

How do I run multiple files in eclipse?

You can start multiple servers one by one, and then swith to your program want to run. and run again directly. Or you can set up many run configurations manuly and then run them one by one.

What are run configurations?

Run configuration is a set of parameters, arguments, and settings that define how an application is launched.


2 Answers

EDIT: According to this answer since Eclipse Oxygen (4.7.0) you can use a run configuration of the type Launch Group for that.


Just install "C/C++ Development Tools" from the CDT (see eclipse.org/cdt/downloads.php ) - this single package is enough, no other CDT packages are needed. This won't disturb your Java environment ;-) Then you have "Launch Groups", for any kind of project, including Java projects. See the following screenshot:

enter image description here

You can run or debug the projects (also mixed mode), define delay times and so on. Have fun!

like image 188
Andi Avatar answered Sep 17 '22 18:09

Andi


I found this post on the Eclipse trackers: Start multiple debug configurations at once

While it talks about multi-launching debug configurations, I think it is just as applicable to run configurations.

Launch Group

You may want to right click a run configuration in group launch and configure it.

Launch sequential

like image 24
anirvan Avatar answered Sep 17 '22 18:09

anirvan