diff options
author | 2015-09-18 08:12:30 +0000 | |
---|---|---|
committer | 2015-09-21 08:55:24 +0000 | |
commit | 47cb916ec6f41b8ecbd377ed875f842c3d349b12 (patch) | |
tree | ed304d89738774b22792196626473bccd15da277 /src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java | |
parent | 3815b4cb1e8af84ddfef411a621f47ba6dcaa161 (diff) |
Move getOutputFilesystem to CommandEnvironment; refactor BlazeRuntime commands.
This change makes it so commands are no longer both stored in the BlazeRuntime
and in the BlazeCommandDispatcher. Instead, they are only stored in
BlazeRuntime and usually passed there during construction. We have some tests
where this is tricky, so I'm keeping the old code path for now.
--
MOS_MIGRATED_REVID=103364581
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java b/src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java index 7641ec9d33..5590b061c8 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java @@ -61,6 +61,8 @@ public final class CommandEnvironment { private final BlazeModule.ModuleEnvironment blazeModuleEnvironment; private final Map<String, String> clientEnv = new HashMap<>(); + private String outputFileSystem; + private AtomicReference<AbruptExitException> pendingException = new AtomicReference<>(); private class BlazeModuleEnvironment implements BlazeModule.ModuleEnvironment { @@ -222,4 +224,12 @@ public final class CommandEnvironment { public long getCommandStartTime() { return runtime.getCommandStartTime(); } + + void setOutputFileSystem(String outputFileSystem) { + this.outputFileSystem = outputFileSystem; + } + + public String getOutputFileSystem() { + return outputFileSystem; + } } |