dhblah
dhblah

Reputation: 10151

Compound configuration in intellij

I have several applications. Each of them is deployed in its own application server. It's done this way because it minimizes time to redeploy each application when a change is made only in that application. This is because only one app server with one application will be restarted, which takes less time.

Anyway, I need to start all of those application servers in a certain order and in debug mode. Intellij IDEA has a compound configuration which allows you to start multiple applications. But it has 2 significant flaws: it doesn't allow you to specify the order in which applications should be started and it seems to not allow to start them in debug mode. So is it possible to somehow achieve those goals?

Upvotes: 12

Views: 7850

Answers (2)

Osvald Laurits
Osvald Laurits

Reputation: 1364

You can add tasks to a Run/Debug configuration and configure their order with before launch options.

enter image description here

https://www.jetbrains.com/help/idea/run-launcher.html#before-launch-options https://youtrack.jetbrains.com/issue/IDEA-181164

Upvotes: 7

JamieB
JamieB

Reputation: 1762

The multirun plugin is a better implementation for this. You can define the run order and even more importantly debug works.

https://github.com/rkhmelyuk/multirun

Upvotes: 22

Related Questions