mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimization
This commit is contained in:
@@ -139,13 +139,17 @@ public final class ModuleBuildTarget extends JVMModuleBuildTarget<JavaSourceRoot
|
||||
|
||||
roots_loop:
|
||||
for (JpsTypedModuleSourceRoot<JpsSimpleElement<JavaSourceRootProperties>> sourceRoot : myModule.getSourceRoots(type)) {
|
||||
if (JpsPathUtil.isUnder(moduleExcludes, sourceRoot.getFile())) {
|
||||
continue;
|
||||
}
|
||||
for (ExcludedJavaSourceRootProvider provider : excludedRootProviders) {
|
||||
if (provider.isExcludedFromCompilation(myModule, sourceRoot) || JpsPathUtil.isUnder(moduleExcludes, sourceRoot.getFile())) {
|
||||
if (provider.isExcludedFromCompilation(myModule, sourceRoot)) {
|
||||
continue roots_loop;
|
||||
}
|
||||
}
|
||||
final String packagePrefix = sourceRoot.getProperties().getData().getPackagePrefix();
|
||||
roots.add(new JavaSourceRootDescriptor(sourceRoot.getFile(), this, false, false, packagePrefix, computeRootExcludes(sourceRoot.getFile(), index)));
|
||||
roots.add(new JavaSourceRootDescriptor(sourceRoot.getFile(), this, false, false, packagePrefix,
|
||||
computeRootExcludes(sourceRoot.getFile(), index)));
|
||||
}
|
||||
return roots;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user