refresh output roots on external make

This commit is contained in:
Eugene Zhuravlev
2012-09-24 17:17:46 +04:00
parent 2dcf33e093
commit a51936baa6
@@ -635,14 +635,12 @@ public class CompileDriver {
CompilerCacheManager.getInstance(myProject).flushCaches();
if (ApplicationManager.getApplication().isUnitTestMode()) {
// need this for tests only;
final Set<File> outputs = new HashSet<File>();
for (final String path : CompilerPathsEx.getOutputPaths(ModuleManager.getInstance(myProject).getModules())) {
outputs.add(new File(path));
}
CompilerUtil.refreshIOFiles(outputs);
// refresh on output roots is required in order for the order enumerator to see all roots via VFS
final Set<File> outputs = new HashSet<File>();
for (final String path : CompilerPathsEx.getOutputPaths(ModuleManager.getInstance(myProject).getModules())) {
outputs.add(new File(path));
}
CompilerUtil.refreshIOFiles(outputs);
}
}
};