mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CLEAR_ALL_OUTPUTS_KEY
This commit is contained in:
@@ -2373,10 +2373,14 @@ public class CompileDriver {
|
||||
}
|
||||
|
||||
if (checkOutputAndSourceIntersection && myShouldClearOutputDirectory) {
|
||||
CompilerPathsEx.CLEAR_ALL_OUTPUTS_KEY.set(scope, true);
|
||||
if (!validateOutputAndSourcePathsIntersection()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
CompilerPathsEx.CLEAR_ALL_OUTPUTS_KEY.set(scope, false);
|
||||
}
|
||||
final List<Chunk<Module>> chunks = ModuleCompilerUtil.getSortedModuleChunks(myProject, Arrays.asList(scopeModules));
|
||||
for (final Chunk<Module> chunk : chunks) {
|
||||
final Set<Module> chunkModules = chunk.getNodes();
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.progress.ProgressManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.CompilerModuleExtension;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.VirtualFileManager;
|
||||
@@ -34,6 +35,7 @@ import java.util.Collection;
|
||||
import java.util.Set;
|
||||
|
||||
public class CompilerPathsEx extends CompilerPaths {
|
||||
public static final Key<Boolean> CLEAR_ALL_OUTPUTS_KEY = Key.create("_should_clear_all_outputs_");
|
||||
|
||||
public static File getZippedOutputPath(Project project, String outputDirectoryPath) {
|
||||
final File outputDir = new File(outputDirectoryPath);
|
||||
|
||||
Reference in New Issue
Block a user