diff options
author | ulfjack <ulfjack@google.com> | 2017-06-22 17:41:06 +0200 |
---|---|---|
committer | Marcel Hlopko <hlopko@google.com> | 2017-06-26 18:30:02 +0200 |
commit | 94225590d55749db00c9644b9e62b78ea302b64e (patch) | |
tree | a49a2185050373449cc199d4c7e5284505822837 /src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java | |
parent | b82e3d014b68e5bf220129aa3bbd59bbaa4afa7f (diff) |
Refactor ProjectFileSupport to work without a CommandEnvironment
Reading project files happens very early in the command initialization, and
my plan is to change it so CommandEnvironment is created after we did that; the
reason for that is that it makes the options final upon CommandEnvironment
creation, which in turn allows simplifying the BlazeModule API.
Since we no longer need a CommandEnvironment, or a BlazeWorkspace, or a
BlazeRuntime, make the ProjectFileSupportTest a unit test.
PiperOrigin-RevId: 159830404
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java index d5b05da5e9..47b0cddc9e 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java @@ -91,6 +91,10 @@ public final class BlazeWorkspace { this.outputBaseFilesystemTypeName = FileSystemUtils.getFileSystem(getOutputBase()); } + public BlazeRuntime getRuntime() { + return runtime; + } + /** * Returns the Blaze directories object for this runtime. */ |