aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2015-09-16 10:22:26 +0000
committerGravatar Florian Weikert <fwe@google.com>2015-09-16 15:15:42 +0000
commit4b004af62ac37aee0b5fcac1fbba672130c559ac (patch)
tree4b111c4c17541b3a0217715aae5ff28f171992b5 /src/main/java/com/google/devtools/build/lib/runtime
parent6885134ffeb6daf9a6bd70a836813aab55a9c8e4 (diff)
Change checkRuntime to take a CommandEnvironment instead.
I wanted to merge it into beforeCommand, but the reporter isn't set up yet when we call beforeCommand. Hopefully we can refactor the code to merge it in the future. -- MOS_MIGRATED_REVID=103179268
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java
index cb0a0f95a0..b43e0cea32 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java
@@ -361,7 +361,7 @@ public class BlazeCommandDispatcher {
System.setErr(new PrintStream(reporterOutErr.getErrorStream(), /*autoflush=*/true));
for (BlazeModule module : runtime.getBlazeModules()) {
- module.checkRuntime(runtime);
+ module.checkEnvironment(env);
}
if (commonOptions.announceRcOptions) {
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java
index 68eed5562e..97d9b21662 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java
@@ -360,9 +360,9 @@ public abstract class BlazeModule {
}
/**
- * Perform module specific check of current blaze runtime.
+ * Perform module specific check of current command environment.
*/
- public void checkRuntime(BlazeRuntime runtime) {
+ public void checkEnvironment(CommandEnvironment env) {
}
/**