src/Pure/System/process_result.scala
changeset 73277 0110e2e2964c
parent 73134 8a8ffe78eee7
child 74067 0b1462ce5fda
equal deleted inserted replaced
73276:54065cbf7134 73277:0110e2e2964c
    36   rc: Int,
    36   rc: Int,
    37   out_lines: List[String] = Nil,
    37   out_lines: List[String] = Nil,
    38   err_lines: List[String] = Nil,
    38   err_lines: List[String] = Nil,
    39   timing: Timing = Timing.zero)
    39   timing: Timing = Timing.zero)
    40 {
    40 {
    41   def out: String = cat_lines(out_lines)
    41   def out: String = Library.trim_line(cat_lines(out_lines))
    42   def err: String = cat_lines(err_lines)
    42   def err: String = Library.trim_line(cat_lines(err_lines))
    43 
    43 
    44   def output(outs: List[String]): Process_Result =
    44   def output(outs: List[String]): Process_Result =
    45     copy(out_lines = out_lines ::: outs.flatMap(split_lines))
    45     copy(out_lines = out_lines ::: outs.flatMap(split_lines))
    46   def errors(errs: List[String]): Process_Result =
    46   def errors(errs: List[String]): Process_Result =
    47     copy(err_lines = err_lines ::: errs.flatMap(split_lines))
    47     copy(err_lines = err_lines ::: errs.flatMap(split_lines))