mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
IDEA-104500 Gradle: Allow to reuse common logic for other external systems
Show an error message if gradle run configuration with unspecified tasks is executed
This commit is contained in:
@@ -45,4 +45,5 @@ run.configuration.settings.label.project={0} project:
|
||||
run.configuration.settings.label.tasks=Tasks:
|
||||
run.configuration.settings.label.vmoptions=VM options:
|
||||
run.configuration.settings.caption.vmoptions=VM options:
|
||||
run.text.starting=Executing external tasks ''{0}''...
|
||||
run.text.starting=Executing external tasks ''{0}''...
|
||||
run.error.undefined.task=No task to execute is specified
|
||||
+3
@@ -109,6 +109,9 @@ public class ExternalSystemRunConfiguration extends RunConfigurationBase {
|
||||
for (String taskName : mySettings.getTaskNames()) {
|
||||
tasks.add(new ExternalTaskPojo(taskName, mySettings.getExternalProjectPath(), null));
|
||||
}
|
||||
if (tasks.isEmpty()) {
|
||||
throw new ExecutionException(ExternalSystemBundle.message("run.error.undefined.task"));
|
||||
}
|
||||
final ExternalSystemExecuteTaskTask task = new ExternalSystemExecuteTaskTask(mySettings.getExternalSystemId(),
|
||||
getProject(),
|
||||
tasks,
|
||||
|
||||
Reference in New Issue
Block a user