8172287: improve intellij logging to cover javac internal errors
Add new message kind to custom intellij ant logger Reviewed-by: jjg
This commit is contained in:
parent
42a9464947
commit
01fc0b7771
@ -84,6 +84,8 @@ public final class LangtoolsIdeaAntLogger extends DefaultLogger {
|
|||||||
JAVAC_WARNING(StringBinaryPredicate.CONTAINS, MSG_WARN, "warning:", "compiler.warn"),
|
JAVAC_WARNING(StringBinaryPredicate.CONTAINS, MSG_WARN, "warning:", "compiler.warn"),
|
||||||
/** a javac note */
|
/** a javac note */
|
||||||
JAVAC_NOTE(StringBinaryPredicate.CONTAINS, MSG_INFO, "note:", "compiler.note"),
|
JAVAC_NOTE(StringBinaryPredicate.CONTAINS, MSG_INFO, "note:", "compiler.note"),
|
||||||
|
/** a javac raw error (these typically come from a build misconfiguration - such as a bad javac flag) */
|
||||||
|
JAVAC_RAW_ERROR(StringBinaryPredicate.STARTS_WITH, MSG_INFO, "javac: "),
|
||||||
/** continuation of some javac error message */
|
/** continuation of some javac error message */
|
||||||
JAVAC_NESTED_DIAG(StringBinaryPredicate.STARTS_WITH, MSG_INFO, " "),
|
JAVAC_NESTED_DIAG(StringBinaryPredicate.STARTS_WITH, MSG_INFO, " "),
|
||||||
/** a javac crash */
|
/** a javac crash */
|
||||||
@ -126,7 +128,7 @@ public final class LangtoolsIdeaAntLogger extends DefaultLogger {
|
|||||||
enum Task {
|
enum Task {
|
||||||
/** exec task - invoked during compilation */
|
/** exec task - invoked during compilation */
|
||||||
JAVAC("exec", MessageKind.JAVAC_ERROR, MessageKind.JAVAC_WARNING, MessageKind.JAVAC_NOTE,
|
JAVAC("exec", MessageKind.JAVAC_ERROR, MessageKind.JAVAC_WARNING, MessageKind.JAVAC_NOTE,
|
||||||
MessageKind.JAVAC_NESTED_DIAG, MessageKind.JAVAC_CRASH),
|
MessageKind.JAVAC_RAW_ERROR, MessageKind.JAVAC_NESTED_DIAG, MessageKind.JAVAC_CRASH),
|
||||||
/** jtreg task - invoked during test execution */
|
/** jtreg task - invoked during test execution */
|
||||||
JTREG("jtreg", MessageKind.JTREG_TEST_PASSED, MessageKind.JTREG_TEST_FAILED, MessageKind.JTREG_TEST_ERROR, MessageKind.JTREG_TEST_REPORT),
|
JTREG("jtreg", MessageKind.JTREG_TEST_PASSED, MessageKind.JTREG_TEST_FAILED, MessageKind.JTREG_TEST_ERROR, MessageKind.JTREG_TEST_REPORT),
|
||||||
/** initial synthetic task when the logger is created */
|
/** initial synthetic task when the logger is created */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user