mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notify about ignored overridden compiler options
GitOrigin-RevId: 7f639c5e50d0dd8fd4690cb875502c56eacf13b0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
451b06bb3e
commit
e463485f6d
@@ -813,6 +813,7 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
if (FILTERED_OPTIONS.contains(userOption)) {
|
||||
skip = true;
|
||||
targetOptionFound = "-target".equals(userOption);
|
||||
notifyOptionIgnored(context, userOption, chunk);
|
||||
continue;
|
||||
}
|
||||
if (skip) {
|
||||
@@ -831,6 +832,9 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
appender.accept(compilationOptions, userOption);
|
||||
}
|
||||
}
|
||||
else {
|
||||
notifyOptionIgnored(context, userOption, chunk);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -844,6 +848,12 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
return pair(vmOptions, compilationOptions);
|
||||
}
|
||||
|
||||
private static void notifyOptionIgnored(CompileContext context, String option, ModuleChunk chunk) {
|
||||
context.processMessage(new CompilerMessage(BUILDER_NAME, BuildMessage.Kind.JPS_INFO,
|
||||
"User-specified option \"" + option + "\" is ignored for \"" + chunk.getPresentableShortName() + "\". This compilation parameter is set automatically according to project settings."
|
||||
));
|
||||
}
|
||||
|
||||
public static void addCompilationOptions(List<? super String> options,
|
||||
CompileContext context,
|
||||
ModuleChunk chunk,
|
||||
|
||||
Reference in New Issue
Block a user