diff options
author | 2015-09-16 10:22:26 +0000 | |
---|---|---|
committer | 2015-09-16 15:15:42 +0000 | |
commit | 4b004af62ac37aee0b5fcac1fbba672130c559ac (patch) | |
tree | 4b111c4c17541b3a0217715aae5ff28f171992b5 /src/main/java/com/google/devtools/build/lib/runtime | |
parent | 6885134ffeb6daf9a6bd70a836813aab55a9c8e4 (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.java | 2 | ||||
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java | 4 |
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) { } /** |