IDEA-60000: disable GWT background compilation
authornik <Nikolay.Chashnikov@jetbrains.com>
Thu, 21 Oct 2010 05:49:21 +0000 (09:49 +0400)
committernik <Nikolay.Chashnikov@jetbrains.com>
Thu, 21 Oct 2010 05:53:37 +0000 (09:53 +0400)
java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java
java/compiler/impl/src/com/intellij/compiler/impl/GenericCompilerRunner.java

index 352d23205fdcb99f1a49f0019f834528b12382db..8c5555390be710f13cadb7a8d2f9856b66d381df 100644 (file)
@@ -736,7 +736,7 @@ public class CompileDriver {
       boolean didSomething = false;
 
       final CompilerManager compilerManager = CompilerManager.getInstance(myProject);
-      GenericCompilerRunner runner = new GenericCompilerRunner(context, compilerManager, isRebuild, onlyCheckStatus);
+      GenericCompilerRunner runner = new GenericCompilerRunner(context, myCompilerFilter, compilerManager, isRebuild, onlyCheckStatus);
       try {
         didSomething |= generateSources(compilerManager, context, forceCompile, onlyCheckStatus);
 
index 8b7a773bc0b61fa10fbd59c52bd4fde89e138e85..341f8a7eef1adc70a909c2852a39ce3b2adfd6b1 100644 (file)
@@ -52,11 +52,15 @@ public class GenericCompilerRunner {
   private final GenericCompiler<?,?,?>[] myCompilers;
   private final Project myProject;
 
-  public GenericCompilerRunner(CompileContext context, CompilerManager compilerManager, boolean forceCompile, boolean onlyCheckStatus) {
+  public GenericCompilerRunner(CompileContext context,
+                               CompilerFilter compilerFilter,
+                               CompilerManager compilerManager,
+                               boolean forceCompile,
+                               boolean onlyCheckStatus) {
     myContext = context;
     myForceCompile = forceCompile;
     myOnlyCheckStatus = onlyCheckStatus;
-    myCompilers = compilerManager.getCompilers(GenericCompiler.class);
+    myCompilers = compilerManager.getCompilers(GenericCompiler.class, compilerFilter);
     myProject = myContext.getProject();
   }