mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
honor excludes in annotation processors
This commit is contained in:
+6
-2
@@ -63,9 +63,13 @@ public class AnnotationProcessingCompiler implements SourceProcessingCompiler{
|
||||
final List<ProcessingItem> items = new ArrayList<ProcessingItem>(files.length);
|
||||
final Set<Module> excludedModules = config.getExcludedModules();
|
||||
for (final VirtualFile file : files) {
|
||||
if (excludedModules.size() == 0 || !excludedModules.contains(context.getModuleByFile(file))) {
|
||||
items.add(new MyProcessingItem(file));
|
||||
if (excludedModules.size() != 0 && excludedModules.contains(context.getModuleByFile(file))) {
|
||||
continue;
|
||||
}
|
||||
if (config.isExcludedFromCompilation(file)) {
|
||||
continue;
|
||||
}
|
||||
items.add(new MyProcessingItem(file));
|
||||
}
|
||||
return items.toArray(new ProcessingItem[items.size()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user