From 6aaef612e22a7b3db3faa457d3f1d67d1da4a3a6 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Thu, 11 Nov 2010 19:22:11 +0300 Subject: [PATCH] fix: "refreshDone" flag was virtually not used --- .../impl/src/com/intellij/compiler/impl/CompileDriver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 fd5d00d45ee7..6e6bd9102279 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java +++ b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java @@ -115,7 +115,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 Key REFRESH_DONE_KEY = Key.create("_compiler.initial.refresh.done_"); private static final FileProcessingCompilerAdapterFactory FILE_PROCESSING_COMPILER_ADAPTER_FACTORY = new FileProcessingCompilerAdapterFactory() { public FileProcessingCompilerAdapter create(CompileContext context, FileProcessingCompiler compiler) { @@ -663,8 +663,8 @@ public class CompileDriver { } boolean needRecalcOutputDirs = false; - if (Registry.is(PROP_PERFORM_INITIAL_REFRESH) || !myInitialRefreshPerformed) { - myInitialRefreshPerformed = true; + if (Registry.is(PROP_PERFORM_INITIAL_REFRESH) || !Boolean.valueOf(REFRESH_DONE_KEY.get(myProject, Boolean.FALSE))) { + REFRESH_DONE_KEY.set(myProject, Boolean.TRUE); final long refreshStart = System.currentTimeMillis(); //need this to make sure the VFS is built