aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2017-06-22 17:41:06 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-26 18:30:02 +0200
commit94225590d55749db00c9644b9e62b78ea302b64e (patch)
treea49a2185050373449cc199d4c7e5284505822837 /src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java
parentb82e3d014b68e5bf220129aa3bbd59bbaa4afa7f (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.java4
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.
*/