aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2016-06-22 13:43:38 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-06-23 11:01:44 +0000
commit755dd84c737088d525200159e43a14daac157c17 (patch)
tree75421199a00f6534f04de869ed41fdd899cc0392 /src/main/java/com/google/devtools/build/lib/remote
parent52d15620851a652efa5c5cae6399bcb3c33105c6 (diff)
Split BlazeModule.getCommandOptions into two; unify all implementations.
Several modules now explicitly add common command options. Of the remaining ones, most add options to the build command, except one, which adds options to query. They now all use the canonical implementation. Also updated the documentation to clarify what this method actually does. -- MOS_MIGRATED_REVID=125560058
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java
index 88e7f86e58..ff772217b4 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java
@@ -88,7 +88,7 @@ public final class RemoteModule extends BlazeModule {
@Override
public Iterable<Class<? extends OptionsBase>> getCommandOptions(Command command) {
- return command.builds()
+ return "build".equals(command.name())
? ImmutableList.<Class<? extends OptionsBase>>of(RemoteOptions.class)
: ImmutableList.<Class<? extends OptionsBase>>of();
}