From 1914f8ac068e1fb2bc004d11da1b9d24d6f36bd0 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Thu, 18 Jun 2015 10:46:17 +0200 Subject: [PATCH] experimental: registry option to allow automake start even if some run configurations are active (requested for IDEA-141609) --- .../com/intellij/compiler/CompilerWorkspaceConfiguration.java | 3 ++- platform/util/resources/misc/registry.properties | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/java/compiler/openapi/src/com/intellij/compiler/CompilerWorkspaceConfiguration.java b/java/compiler/openapi/src/com/intellij/compiler/CompilerWorkspaceConfiguration.java index 22fd6c6527ef..74ad7cfae9b1 100644 --- a/java/compiler/openapi/src/com/intellij/compiler/CompilerWorkspaceConfiguration.java +++ b/java/compiler/openapi/src/com/intellij/compiler/CompilerWorkspaceConfiguration.java @@ -22,6 +22,7 @@ package com.intellij.compiler; import com.intellij.openapi.components.*; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; +import com.intellij.openapi.util.registry.Registry; import com.intellij.util.xmlb.XmlSerializerUtil; @State( @@ -60,6 +61,6 @@ public class CompilerWorkspaceConfiguration implements PersistentStateComponent< } public boolean allowAutoMakeWhileRunningApplication() { - return false;/*ALLOW_AUTOMAKE_WHILE_RUNNING_APPLICATION*/ + return Registry.is("compiler.automake.allow.when.app.running", false);/*ALLOW_AUTOMAKE_WHILE_RUNNING_APPLICATION*/ } } diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index 7ee1c8d66648..394c7e775d0f 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -221,6 +221,9 @@ compiler.process.debug.port=-1 compiler.automake.trigger.delay=300 compiler.automake.trigger.delay.description=Delay in milliseconds before triggering auto-make in response to file system events +compiler.automake.allow.when.app.running=false +compiler.automake.allow.when.app.running.description=Allow auto-make to start even if developed application is currently running. Note that automatically started make may eventually delete some classes that are required by the application. + compiler.document.save.trigger.delay=1500 compiler.document.save.trigger.delay.description=Delay in milliseconds before triggering save in response to document changes