diff options
author | 2016-03-24 13:26:47 +0000 | |
---|---|---|
committer | 2016-03-24 20:05:45 +0000 | |
commit | 4825696e964848c766df492955eb8ae35c900018 (patch) | |
tree | a2d760ce6c74d2ea91e8864c653fa7827a2fb106 /src/main/java | |
parent | 4e15e43aff8cf8b8c96bc70389b4a9eb72071017 (diff) |
Signal that the query command does not build
This will tell the experimental UI not to produce updates on the
build status and also pass through correctly STDOUT/STDERR events.
In particular, the standard output is suitable for consumption by
other tools.
--
Change-Id: Ifffd445433a29df20f062a762fe6280229319196
Reviewed-on: https://bazel-review.googlesource.com/#/c/3123
MOS_MIGRATED_REVID=118024251
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java index 824970a29c..234c03a490 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java @@ -20,6 +20,7 @@ import com.google.common.base.Joiner; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.devtools.build.lib.Constants; +import com.google.devtools.build.lib.analysis.NoBuildEvent; import com.google.devtools.build.lib.collect.CompactHashSet; import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.packages.Target; @@ -198,6 +199,7 @@ public final class QueryCommand implements BlazeCommand { } } + env.getEventBus().post(new NoBuildEvent()); if (!streamResults) { disableAnsiCharactersFiltering(env); output = new PrintStream(env.getReporter().getOutErr().getOutputStream()); |