Skip to content

Commit

Permalink
fix: Copy 'Run launch' tasks to the Maven run configuration
Browse files Browse the repository at this point in the history
The 'Before launch' tasks are configured in the QuarkusRunConfiguration. The must be added to the MavenRunConfiguration and GradleRunConfiguration, which are the ones which are actually executed.
  • Loading branch information
alerosmile committed Nov 9, 2023
1 parent daf7fcb commit c4bb300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ public RunnerAndConfigurationSettings getConfigurationDelegate(Module module, Qu
parameters += " -Dquarkus.profile=" + configuration.getProfile();
}
gradleConfiguration.getSettings().setScriptParameters(parameters);
gradleConfiguration.setBeforeRunTasks(configuration.getBeforeRunTasks());
return settings;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public RunnerAndConfigurationSettings getConfigurationDelegate(Module module, Qu
mavenConfiguration.getRunnerSettings().getMavenProperties().put("quarkus.profile", configuration.getProfile());
}
mavenConfiguration.getRunnerSettings().getMavenProperties().put("debug", Integer.toString(configuration.getPort()));
mavenConfiguration.setBeforeRunTasks(configuration.getBeforeRunTasks());
return settings;
}

Expand Down

0 comments on commit c4bb300

Please sign in to comment.