diff options
author | 2016-03-30 16:35:52 +0000 | |
---|---|---|
committer | 2016-03-31 07:08:57 +0000 | |
commit | aeecabdd0526d39a915917b45a7a796daba0b6a0 (patch) | |
tree | 0698027ec1f1eb977ea401690bd9be467333acde /src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java | |
parent | 3f29d42284386e3c3cadf3e48251c1ad7bb90f66 (diff) |
Signal that the help command does not build
In this way, we prevent the experimental UI from reporting
about the number of actions (actually 0) currently running.
--
Change-Id: Ic1c02d388f1928b8fe8d2d66dc14757b0213c43b
Reviewed-on: https://bazel-review.googlesource.com/#/c/3180
MOS_MIGRATED_REVID=118580580
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java index 2aa49d7e13..a514596719 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java @@ -20,6 +20,7 @@ import com.google.devtools.build.docgen.BlazeRuleHelpPrinter; import com.google.devtools.build.lib.Constants; import com.google.devtools.build.lib.analysis.BlazeVersionInfo; import com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider; +import com.google.devtools.build.lib.analysis.NoBuildEvent; import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.packages.RuleClass; import com.google.devtools.build.lib.runtime.BlazeCommand; @@ -134,6 +135,8 @@ public final class HelpCommand implements BlazeCommand { @Override public ExitCode exec(CommandEnvironment env, OptionsProvider options) { + env.getEventBus().post(new NoBuildEvent()); + BlazeRuntime runtime = env.getRuntime(); OutErr outErr = env.getReporter().getOutErr(); Options helpOptions = options.getOptions(Options.class); |