From cd211eebe4a2eb776ecf7ee65cc5954aa1110e48 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 21 Jun 2016 08:44:15 +0000 Subject: Add an option for the number of actions shown in the experimental UI Currently, the experimental UI always shows the 3 oldest, still running actions. While this seems a reasonable default, some users requested to be able to change the number of actions shown. Hence replace the hard-coded value by a flag. While there, also fix an off-by-one error in deciding when to put the ellipsis symbol. -- Change-Id: I037d208360fa1d3f100c99ab1ab1f5fc140138ac Reviewed-on: https://bazel-review.googlesource.com/#/c/3811 MOS_MIGRATED_REVID=125427168 --- .../devtools/build/lib/runtime/BlazeCommandEventHandler.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java') diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java index 635a4561a0..85fb3fa45c 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java @@ -157,6 +157,13 @@ public class BlazeCommandEventHandler implements EventHandler { ) public boolean experimentalUiDebugAllEvents; + @Option( + name = "experimental_ui_actions_shown", + defaultValue = "3", + category = "hidden", + help = "Number of concurrent actions shown in the experimental new Bazel UI." + ) + public int experimentalUiActionsShown; public boolean useColor() { return useColorEnum == UseColor.YES || (useColorEnum == UseColor.AUTO && isATty); -- cgit v1.2.3