Search in sources :

Example 1 with OutputType

use of com.google.idea.blaze.base.scope.output.PrintOutput.OutputType in project intellij by bazelbuild.

the class IssueOutputLineProcessor method processLine.

@Override
public boolean processLine(String line) {
    IssueOutput issue = blazeIssueParser.parseIssue(line);
    if (issue != null) {
        if (issue.getCategory() == IssueOutput.Category.ERROR) {
            context.setHasError();
        }
        context.output(issue);
    }
    OutputType outputType = issue == null ? OutputType.NORMAL : OutputType.ERROR;
    context.output(new PrintOutput(line, outputType));
    return true;
}
Also used : PrintOutput(com.google.idea.blaze.base.scope.output.PrintOutput) IssueOutput(com.google.idea.blaze.base.scope.output.IssueOutput) OutputType(com.google.idea.blaze.base.scope.output.PrintOutput.OutputType)

Aggregations

IssueOutput (com.google.idea.blaze.base.scope.output.IssueOutput)1 PrintOutput (com.google.idea.blaze.base.scope.output.PrintOutput)1 OutputType (com.google.idea.blaze.base.scope.output.PrintOutput.OutputType)1