aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
index 2b64b6ed80..e4fad28e57 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
@@ -234,6 +234,12 @@ public final class BlazeRuntime {
}
}
+ /**
+ * Initializes a CommandEnvironment to execute a command in this server.
+ *
+ * <p>This method should be called from the "main" thread on which the command will execute;
+ * that thread will receive interruptions if a module requests an early exit.
+ */
public CommandEnvironment initCommand() {
return workspace.initCommand();
}