1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 307210: Build console does not show output lines that set to be ignored by error parsers

This commit is contained in:
Andrew Gvozdev 2010-03-26 21:10:07 +00:00
parent dc4a320192
commit 82446508ce

View file

@ -312,6 +312,9 @@ public class ErrorParserManager extends OutputStream {
String lineTrimmed = line.trim(); String lineTrimmed = line.trim();
lineCounter++; lineCounter++;
ProblemMarkerInfo marker=null;
outer:
for (IErrorParser[] parsers : fErrorParsers.values()) { for (IErrorParser[] parsers : fErrorParsers.values()) {
for (IErrorParser parser : parsers) { for (IErrorParser parser : parsers) {
IErrorParser curr = parser; IErrorParser curr = parser;
@ -344,21 +347,22 @@ public class ErrorParserManager extends OutputStream {
String id = ""; //$NON-NLS-1$ String id = ""; //$NON-NLS-1$
if (parser instanceof IErrorParserNamed) if (parser instanceof IErrorParserNamed)
id = ((IErrorParserNamed)parser).getId(); id = ((IErrorParserNamed)parser).getId();
String message = "Errorparser " + id + " failed parsing line [" + lineToParse + "]"; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ @SuppressWarnings("nls")
String message = "Errorparser " + id + " failed parsing line [" + lineToParse + "]";
CCorePlugin.log(message, e); CCorePlugin.log(message, e);
} finally { } finally {
if (fErrors.size() > 0) { if (fErrors.size() > 0) {
ProblemMarkerInfo m = fErrors.get(0); if (marker==null)
outputLine(line, m); marker = fErrors.get(0);
fErrors.clear(); fErrors.clear();
} }
} }
if (consume) if (consume)
return; break outer;
} }
} }
outputLine(line, null); outputLine(line, marker);
} }
/** /**