From b2191876b68e068a243ea201b5e45bae5edd4a9d Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Mon, 7 Dec 2009 20:32:50 +0300 Subject: [PATCH] when initial refresh is turned off, still have to perform it once for each project. --- java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 30816ea692..f3dfa835b7 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java +++ b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java @@ -109,6 +109,7 @@ public class CompileDriver { private static final boolean GENERATE_CLASSPATH_INDEX = "true".equals(System.getProperty("generate.classpath.index")); private static final String PROP_PERFORM_INITIAL_REFRESH = "compiler.perform.outputs.refresh.on.start"; + private boolean myInitialRefreshPerformed = false; private static final FileProcessingCompilerAdapterFactory FILE_PROCESSING_COMPILER_ADAPTER_FACTORY = new FileProcessingCompilerAdapterFactory() { public FileProcessingCompilerAdapter create(CompileContext context, FileProcessingCompiler compiler) { @@ -619,7 +620,8 @@ public class CompileDriver { } boolean needRecalcOutputDirs = false; - if (Registry.is(PROP_PERFORM_INITIAL_REFRESH)) { + if (Registry.is(PROP_PERFORM_INITIAL_REFRESH) || !myInitialRefreshPerformed) { + myInitialRefreshPerformed = true; final long refreshStart = System.currentTimeMillis(); // need this to make sure the VFS is built -- 2.11.4.GIT