mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Build tw: strip 'error: ' prefix from error message IDEA-209457
GitOrigin-RevId: 25f80f2c9a796462791d4e793c45b378c75c1214
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d36d61805c
commit
3eb7cef247
@@ -25,6 +25,7 @@ public class JavacOutputParser implements BuildOutputParser {
|
||||
|
||||
private static final char COLON = ':';
|
||||
private static final String WARNING_PREFIX = "warning:"; // default value
|
||||
private static final String ERROR_PREFIX = "error:";
|
||||
|
||||
@Override
|
||||
public boolean parse(@NotNull String line, @NotNull BuildOutputInstantReader reader, @NotNull Consumer<? super BuildEvent> messageConsumer) {
|
||||
@@ -82,6 +83,9 @@ public class JavacOutputParser implements BuildOutputParser {
|
||||
if (text.startsWith(WARNING_PREFIX)) {
|
||||
text = text.substring(WARNING_PREFIX.length()).trim();
|
||||
kind = MessageEvent.Kind.WARNING;
|
||||
} else if (text.startsWith(ERROR_PREFIX)) {
|
||||
text = text.substring(ERROR_PREFIX.length()).trim();
|
||||
kind = MessageEvent.Kind.ERROR;
|
||||
}
|
||||
|
||||
// Only slurp up line pointer (^) information if this is really javac
|
||||
|
||||
Reference in New Issue
Block a user