Running Multiple Launch Configurations at Once

Running multiple launch configurations at once

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

Multiple Launch Files in Visual Studio Code

VSCode supports only one launch.json, but you can have multiple launch configurations inside one launch.json. The example at https://code.visualstudio.com/Docs/debugging has 3 different launch configurations. You can specify any amount, and choose the active one using a drop down in the debug view.

How can I run multiple eclipse launch files sequentially?

Run Configurations -> Launch Group.

There you can add launch configurations and order them too!
Found it here

For sequentially running remember to select Post launch action: Wait until terminated

How to set multiple launch.json or different arguments in same project folder at Visual Studio Code?

As you had begun to realize, VS Code allows for multiple launch configurations.

You can create one (or another) configuration by going to the debug menu on the left side of the window, clicking the dropdown for selecting which launch configuration to use, and clicking Add Configuration.

Adding another launcher

When you want to switch configurations, just select the one you want to use from the same dropdown menu.

How to launch multiple Java programs with one configuration on separate consoles (with Eclipse)

['multiple launch part':]

If you have an ant launch configuration which does what you want, you can always transform it into a java launcher calling ant.

Main Class: org.apache.tools.ant.Main

-Dant.home=${resource_loc:/myPath/apache_ant}
-f ${resource_loc:/myProject/config/myFile-ant.xml}

You can then launch this ant session as a regular java application, with all eclipse debugging facilities at your disposal.

Add to your classpath in the User Entries section (before your project and default path):

  • ant.jar
  • ant-launcher.jar

[Multiple console part]

May be a possible solution would be to make sure your ant launcher actually launches the different application in their own JVM process (one javaw.exe for each application)

That way, you could use the ability of the native eclipse console to switch between different process.

The Console view clearly separates output from each distinct "process" and keeps them in several "buffers". The Console has a built-in "switch" feature that will automatically switch the view to display the buffer of the last process that performed output, however you can easily switch the display to any "process buffer" you want to look at.

To switch the Console "buffer" display, just click on the black "Down arrow" next to the 4th toolbar button from the right in the Console View's title bar (the button
that resembles a computer screen):

this will show a pop-down menu listing the "names" of all active process buffers, preceded by an "order number".
The one currently displayed will have a check-mark before its "order number". You can switch the view to another display buffer simply by clicking on its name.

How to run multiple IntelliJ IDEA configurations after one another (serially, sequentially)?

Besides the Before launch functionality mentioned in the question, there is no such possibility in IntelliJ IDEA and other JetBrains IDEs to my knowledge. However, there exists plugins that add Run Configurations that initially do nothing (empty), which can be considered as a generic/main/super Run Configuration. In such a configuration the regular way of specifying other configurations to run sequentially before launch can be used to achieve the question's goal.

An example of a plugin that adds an initially empty Run Configuration is the Multirun plugin. Don't be confused by its name: it's meant to run multiple Run Configurations simultaneously with the option to start them sequentially, but it does not wait for earlier ones to finish before starting the later ones. Just add the default (empty) Multirun configuration and queue up other tasks to run sequentially through the Before launch section.

It's a pity JetBrains haven't added a serial/sequential execution configuration in their Compound Run Configuration, which basically achieves what the Multirun plugin achieves: simultaneous / parallel execution. With compound run configurations, the Run Configuration editor would become a really powerful but simple to program configurations for various wishes like Gradle achieves for more complex build configurations.



Related Topics



Leave a reply



Submit