mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-108602 Gradle: Integrate 'debug task' to the execution system
Trimming vm options before distributing them to the gradle api. It seems that the later is rather fragile in a way that it fails if the options starts with white space
This commit is contained in:
@@ -51,8 +51,8 @@ public class GradleTaskManager implements ExternalSystemTaskManager<GradleExecut
|
||||
@Override
|
||||
public Void fun(ProjectConnection connection) {
|
||||
BuildLauncher launcher = myHelper.getBuildLauncher(id, connection, settings, listener);
|
||||
if (!StringUtil.isEmpty(vmOptions)) {
|
||||
launcher.setJvmArguments(vmOptions);
|
||||
if (vmOptions != null) {
|
||||
launcher.setJvmArguments(vmOptions.trim());
|
||||
}
|
||||
launcher.forTasks(ArrayUtil.toStringArray(taskNames));
|
||||
launcher.run();
|
||||
|
||||
Reference in New Issue
Block a user