mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external build: fix loading processor data from xml; specify options to javac in correct format (IDEA-97426 Incorrect annotation processors executed)
This commit is contained in:
@@ -593,9 +593,10 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
options.add(processorsPath == null? "" : FileUtil.toSystemDependentName(processorsPath.trim()));
|
||||
}
|
||||
|
||||
for (String procFQName : profile.getProcessors()) {
|
||||
final Set<String> processors = profile.getProcessors();
|
||||
if (!processors.isEmpty()) {
|
||||
options.add("-processor");
|
||||
options.add(procFQName);
|
||||
options.add(StringUtil.join(processors, ","));
|
||||
}
|
||||
|
||||
for (Map.Entry<String, String> optionEntry : profile.getProcessorOptions().entrySet()) {
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ public class AnnotationProcessorProfileSerializer {
|
||||
profile.clearProcessors();
|
||||
for (Object procElement : element.getChildren("processor")) {
|
||||
final String name = ((Element)procElement).getAttributeValue(NAME);
|
||||
if (StringUtil.isEmptyOrSpaces(name)) {
|
||||
if (!StringUtil.isEmptyOrSpaces(name)) {
|
||||
profile.addProcessor(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user