gradle: do not use gradle daemon while debugging gradle scripts using the groovy run configuration

This commit is contained in:
Vladislav.Soroka
2018-01-15 22:08:39 +03:00
parent 9977d85358
commit 7ac397bb3d
@@ -113,7 +113,7 @@ public class GradleScriptType extends GroovyRunnableScriptType {
List<String> tasks = getTasksTarget(location);
if (tasks != null) {
String s = StringUtil.join(tasks, " ");
configuration.setProgramParameters(s);
configuration.setProgramParameters(s + " --no-daemon");
configuration.setName("gradle:" + s);
}
RunManagerEx.disableTasks(file.getProject(), configuration, CompileStepBeforeRun.ID, CompileStepBeforeRunNoErrorCheck.ID);