コード例 #1
0
 @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);
   }
 }
コード例 #2
0
 @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;
     }
   }
 }