Merged
authoreberlm
Thu, 25 Feb 2016 16:54:24 +0100
changeset 62423 2497c966ba2b
parent 62422 4aa35fd6c152 (current diff)
parent 62409 e391528eff3b (diff)
child 62424 8c47e7fcdb8d
Merged
--- a/etc/options	Thu Feb 25 16:44:53 2016 +0100
+++ b/etc/options	Thu Feb 25 16:54:24 2016 +0100
@@ -96,7 +96,10 @@
   -- "scale factor for session timeout"
 
 option process_output_limit : int = 100
-  -- "build process output limit in million characters (0 = unlimited)"
+  -- "build process output limit (in million characters, 0 = unlimited)"
+
+option process_output_tail : int = 40
+  -- "build process output tail shown to user (in lines, 0 = unlimited)"
 
 
 section "ML System"
--- a/src/Pure/Tools/build.scala	Thu Feb 25 16:44:53 2016 +0100
+++ b/src/Pure/Tools/build.scala	Thu Feb 25 16:54:24 2016 +0100
@@ -880,9 +880,10 @@
             val process_result_tail =
             {
               val lines = process_result.out_lines.filterNot(_.startsWith("\f"))
-              val tail = lines.drop(lines.length - 20 max 0)
+              val tail = job.info.options.int("process_output_tail")
+              val lines1 = if (tail == 0) lines else lines.drop(lines.length - tail max 0)
               process_result.copy(out_lines =
-                "(see also " + (output_dir + log(name)).file.toString + ")" :: tail)
+                "(see also " + (output_dir + log(name)).file.toString + ")" :: lines1)
             }
 
             val heap =