src/Pure/System/process_result.scala
changeset 62404 13a0f537e232
parent 62402 bff56eae3ec5
child 62405 d653532762e4
equal deleted inserted replaced
62403:1d7aba20a332 62404:13a0f537e232
    26   def check: Process_Result =
    26   def check: Process_Result =
    27     if (ok) this
    27     if (ok) this
    28     else if (interrupted) throw Exn.Interrupt()
    28     else if (interrupted) throw Exn.Interrupt()
    29     else Library.error(err)
    29     else Library.error(err)
    30 
    30 
    31   def clear: Process_Result = copy(out_lines = Nil, err_lines = Nil)
       
    32 
       
    33   def print: Process_Result =
    31   def print: Process_Result =
    34   {
    32   {
    35     Output.warning(Library.trim_line(err))
    33     Output.warning(Library.trim_line(err))
    36     Output.writeln(Library.trim_line(out))
    34     Output.writeln(Library.trim_line(out))
    37     clear
    35     copy(out_lines = Nil, err_lines = Nil)
    38   }
    36   }
    39 }
    37 }