From 2895c13657e50cb68f0cbde1e6548669aacca1d7 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Fri, 8 Oct 2010 15:25:56 +0400 Subject: [PATCH] when compiler validation fails, still notify callback about the status of the comilation: IDEA-59585 --- .../src/com/intellij/compiler/impl/CompileDriver.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java index 08920390286f..e11132f6bfd1 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java +++ b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java @@ -186,6 +186,9 @@ public class CompileDriver { if (validateCompilerConfiguration(scope, false)) { startup(scope, false, false, callback, null, true, false); } + else { + callback.finished(true, 0, 0, DummyCompileContext.getInstance()); + } } public boolean isUpToDate(CompileScope scope) { @@ -247,6 +250,9 @@ public class CompileDriver { if (validateCompilerConfiguration(scope, false)) { startup(scope, false, true, callback, null, true, trackDependencies); } + else { + callback.finished(true, 0, 0, DummyCompileContext.getInstance()); + } } private static class CompileStatus { @@ -327,6 +333,9 @@ public class CompileDriver { if (validateCompilerConfiguration(compileScope, true)) { startup(compileScope, true, false, callback, message, checkCachesVersion, false); } + else { + callback.finished(true, 0, 0, DummyCompileContext.getInstance()); + } } private CompileScope addAdditionalRoots(CompileScope originalScope, final CompilerFilter filter) {