temp option

This commit is contained in:
Eugene Zhuravlev
2012-04-23 18:28:00 +02:00
parent 5a4aa28137
commit 281fa48c82
3 changed files with 8 additions and 3 deletions
@@ -164,7 +164,7 @@ public class CompileServerManager implements ApplicationComponent{
}
private boolean shouldTriggerMake(List<? extends VFileEvent> events) {
if (!CompileDriver.OUT_OF_PROCESS_MAKE_AS_SERVER) {
if (!CompileDriver.runOutOfProcessMakeAsServer()) {
return false;
}
for (VFileEvent event : events) {
@@ -107,7 +107,12 @@ public class CompileDriver {
private static final Logger LOG = Logger.getInstance("#com.intellij.compiler.impl.CompileDriver");
// to be used in tests only for debug output
public static volatile boolean ourDebugMode = false;
public static final boolean OUT_OF_PROCESS_MAKE_AS_SERVER = true; // out-of-process make implementation switch (server / per-project build process)
// todo: temp option
private static final boolean OUT_OF_PROCESS_MAKE_AS_SERVER = false; // out-of-process make implementation switch (server / per-project build process)
public static boolean runOutOfProcessMakeAsServer() {
return OUT_OF_PROCESS_MAKE_AS_SERVER;
}
private final Project myProject;
private final Map<Pair<IntermediateOutputCompiler, Module>, Pair<VirtualFile, VirtualFile>> myGenerationCompilerModuleToOutputDirMap; // [IntermediateOutputCompiler, Module] -> [ProductionSources, TestSources]
@@ -178,7 +178,7 @@ public class BuildManager implements ApplicationComponent{
}
private boolean shouldTriggerMake(List<? extends VFileEvent> events) {
if (CompileDriver.OUT_OF_PROCESS_MAKE_AS_SERVER) {
if (CompileDriver.runOutOfProcessMakeAsServer()) {
return false;
}
for (VFileEvent event : events) {