@NotNull private StringBuilder getLastLineFor(Key outputType) { if (ProcessOutputTypes.STDERR.equals(outputType)) { return errorLine; } else if (ProcessOutputTypes.STDOUT.equals(outputType)) { return outputLine; } else { throw new IllegalArgumentException("Unknown process output type " + outputType); } }
@Override public void onLineAvailable(String line, Key outputType) { final String trim = line.trim(); if (ProcessOutputTypes.STDOUT.equals(outputType)) { try { parseLine(trim); } catch (SvnBindException e) { myException = e; } } }