src/Pure/System/build.scala
changeset 48549 cc7990d6eb38
parent 48548 49afe0e92163
child 48552 b1819875b76a
equal deleted inserted replaced
48548:49afe0e92163 48549:cc7990d6eb38
   479             echo(Library.trim_line(err))
   479             echo(Library.trim_line(err))
   480 
   480 
   481             if (rc == 0) {
   481             if (rc == 0) {
   482               val sources = make_stamp(name)
   482               val sources = make_stamp(name)
   483               val heap = heap_stamp(job.output_path)
   483               val heap = heap_stamp(job.output_path)
       
   484               (output_dir + log(name)).file.delete
   484               File.write_gzip(output_dir + log_gz(name), sources + "\n" + heap + "\n" + out)
   485               File.write_gzip(output_dir + log_gz(name), sources + "\n" + heap + "\n" + out)
   485             }
   486             }
   486             else {
   487             else {
       
   488               (output_dir + log_gz(name)).file.delete
   487               File.write(output_dir + log(name), out)
   489               File.write(output_dir + log(name), out)
   488               echo(name + " FAILED")
   490               echo(name + " FAILED")
   489               echo("(see also " + log(name).file.toString + ")")
   491               echo("(see also " + log(name).file.toString + ")")
   490               val lines = split_lines(out)
   492               val lines = split_lines(out)
   491               val tail = lines.drop(lines.length - 20 max 0)
   493               val tail = lines.drop(lines.length - 20 max 0)