coder11
coder11

Reputation: 477

How can I run multiple eclipse launch files sequentially?

Here's an example scenario

I have three launch files named A, B, C. I want B to run after A finishes and C to run after B finishes.

Currently if I run A which takes a lot of time and run B immediately afterwards B starts executing in parallel with A.

Please help

Upvotes: 5

Views: 4373

Answers (3)

coder11
coder11

Reputation: 477

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

Upvotes: 15

Aaron Digulla
Aaron Digulla

Reputation: 328546

Convert the projects into modules and create a parent POM which executes the build in order.

By using the mvn install -pl :A, you can still build each module individually or mvn install -rf :B to build B and C in order (I'm using the command line notation, in Eclipse, you can set these using the Maven launch editor).

Upvotes: 1

rlegendi
rlegendi

Reputation: 10606

I would suggest creating a script (bash/Powershell/Ant/whatever) and setting up a single External Run Configuration for that.

Simply call A, when it finishes run B and C with forking.

Upvotes: 3

Related Questions