mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[perf-tests] do not print found during compilation warnings
GitOrigin-RevId: 4eaaa7561cdc5a197ef88dad86ec9ea421984471
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c06cf6db53
commit
16f513996c
@@ -65,6 +65,7 @@ public class BuildCommand extends AbstractCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void compilationFinished(boolean aborted, int errors, int warnings, @NotNull CompileContext compileContext) {
|
public void compilationFinished(boolean aborted, int errors, int warnings, @NotNull CompileContext compileContext) {
|
||||||
if (errors > 0) {
|
if (errors > 0) {
|
||||||
|
context.message("Compilation FAILED.", getLine());
|
||||||
CompilerMessage[] errorMessages = compileContext.getMessages(CompilerMessageCategory.ERROR);
|
CompilerMessage[] errorMessages = compileContext.getMessages(CompilerMessageCategory.ERROR);
|
||||||
StringBuilder errorMessage = new StringBuilder("Errors happened during build: " + errors);
|
StringBuilder errorMessage = new StringBuilder("Errors happened during build: " + errors);
|
||||||
for (CompilerMessage error : errorMessages) {
|
for (CompilerMessage error : errorMessages) {
|
||||||
@@ -74,12 +75,6 @@ public class BuildCommand extends AbstractCommand {
|
|||||||
spanRef.get().setAttribute("Errors", errors);
|
spanRef.get().setAttribute("Errors", errors);
|
||||||
}
|
}
|
||||||
if (warnings > 0) {
|
if (warnings > 0) {
|
||||||
CompilerMessage[] warningMessages = compileContext.getMessages(CompilerMessageCategory.WARNING);
|
|
||||||
StringBuilder warningMessage = new StringBuilder("Warnings happened during build: " + warnings);
|
|
||||||
for (CompilerMessage warning : warningMessages) {
|
|
||||||
warningMessage.append("\n").append(warning);
|
|
||||||
}
|
|
||||||
context.message(warningMessage.toString(), getLine());
|
|
||||||
spanRef.get().setAttribute("Warnings", warnings);
|
spanRef.get().setAttribute("Warnings", warnings);
|
||||||
}
|
}
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
|
|||||||
Reference in New Issue
Block a user