mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Pass vmOptions and scriptParameters to the deprecated method of ExternalSystemTaskManager
This commit is contained in:
+4
-2
@@ -19,10 +19,10 @@ import com.intellij.openapi.externalSystem.model.ExternalSystemException;
|
||||
import com.intellij.openapi.externalSystem.model.settings.ExternalSystemExecutionSettings;
|
||||
import com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId;
|
||||
import com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -52,7 +52,9 @@ public interface ExternalSystemTaskManager<S extends ExternalSystemExecutionSett
|
||||
@Nullable S settings,
|
||||
@Nullable String jvmAgentSetup,
|
||||
@NotNull ExternalSystemTaskNotificationListener listener) throws ExternalSystemException {
|
||||
executeTasks(id, taskNames, projectPath, settings, Collections.emptyList(), Collections.emptyList(), jvmAgentSetup, listener);
|
||||
List<String> vmOptions = settings == null ? ContainerUtil.emptyList() : ContainerUtil.newArrayList(settings.getVmOptions());
|
||||
List<String> arguments = settings == null ? ContainerUtil.emptyList() : ContainerUtil.newArrayList(settings.getArguments());
|
||||
executeTasks(id, taskNames, projectPath, settings, vmOptions, arguments, jvmAgentSetup, listener);
|
||||
}
|
||||
|
||||
boolean cancelTask(@NotNull ExternalSystemTaskId id,
|
||||
|
||||
Reference in New Issue
Block a user