diff options
author | 2015-09-16 13:00:45 +0000 | |
---|---|---|
committer | 2015-09-16 15:15:50 +0000 | |
commit | ca2d8d2748c1b419bde4926a69100f81399c182d (patch) | |
tree | 6788653c706fceb5e6d1894bf142a7f8d89b8836 /src/main/java/com/google/devtools/build/lib/buildtool | |
parent | c52eb9c5543f23edd8d91087e33194137e5ccca2 (diff) |
Move several parts of BlazeRuntime to CommandEnvironment.
The main piece is the blaze module environment, which is only valid during
command execution. Also configuration creation and precompleteCommand.
--
MOS_MIGRATED_REVID=103186467
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildtool')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java b/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java index d646b5148a..0f7251202d 100644 --- a/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java +++ b/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java @@ -181,7 +181,7 @@ public final class BuildTool { request.getMultiCpus(), request.getViewOptions().keepGoing); env.getEventBus().post(new ConfigurationsCreatedEvent(configurations)); - runtime.throwPendingException(); + env.throwPendingException(); if (configurations.getTargetConfigurations().size() == 1) { // TODO(bazel-team): This is not optimal - we retain backwards compatibility in the case // where there's only a single configuration, but we don't send an event in the multi-config @@ -376,7 +376,7 @@ public final class BuildTool { throws LoadingFailedException, TargetParsingException, InterruptedException, AbruptExitException { Profiler.instance().markPhase(ProfilePhase.LOAD); - runtime.throwPendingException(); + env.throwPendingException(); initializeOutputFilter(request); @@ -400,7 +400,7 @@ public final class BuildTool { env.getEventBus(), request.getTargets(), request.getLoadingOptions(), runtime.createBuildOptions(request).getAllLabels(), keepGoing, isLoadingEnabled(request), request.shouldRunTests(), callback); - runtime.throwPendingException(); + env.throwPendingException(); return result; } |