mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -38,7 +38,8 @@ import org.jetbrains.jps.incremental.storage.BuildDataManager;
|
||||
import org.jetbrains.jps.incremental.storage.SourceToFormMapping;
|
||||
import org.jetbrains.jps.javac.*;
|
||||
|
||||
import javax.tools.*;
|
||||
import javax.tools.Diagnostic;
|
||||
import javax.tools.JavaFileObject;
|
||||
import java.io.*;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.ServerSocket;
|
||||
@@ -809,13 +810,17 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
final Map<File, Set<File>> map = new LinkedHashMap<File, Set<File>>();
|
||||
final boolean compilingTests = context.isCompilingTests();
|
||||
for (Module module : chunk.getModules()) {
|
||||
final String output = compilingTests ? module.getTestOutputPath() : module.getOutputPath();
|
||||
if (output == null) {
|
||||
continue;
|
||||
}
|
||||
final Set<File> roots = new LinkedHashSet<File>();
|
||||
for (RootDescriptor descriptor : context.getModuleRoots(module)) {
|
||||
if (descriptor.isTestRoot == compilingTests) {
|
||||
roots.add(descriptor.root);
|
||||
}
|
||||
}
|
||||
map.put(new File(compilingTests ? module.getTestOutputPath() : module.getOutputPath()), roots);
|
||||
map.put(new File(output), roots);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,9 @@ public class ResourcesBuilder extends ModuleLevelBuilder {
|
||||
String sourceRoot,
|
||||
final SourceToOutputMapping outputToSourceMapping) throws IOException {
|
||||
final String outputRoot = context.isCompilingTests() ? module.getTestOutputPath() : module.getOutputPath();
|
||||
if (outputRoot == null) {
|
||||
return;
|
||||
}
|
||||
final String relativePath = FileUtil.getRelativePath(sourceRoot, FileUtil.toSystemIndependentName(file.getPath()), '/');
|
||||
final String prefix = module.getSourceRootPrefixes().get(sourceRoot);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user