aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java
diff options
context:
space:
mode:
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.java24
1 files changed, 6 insertions, 18 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 e682d4ef58..2a2d23edda 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
@@ -36,7 +36,6 @@ import com.google.devtools.build.lib.vfs.FileSystemUtils;
import com.google.devtools.build.lib.vfs.Path;
import com.google.devtools.common.options.OptionsProvider;
import java.io.IOException;
-import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Nullable;
@@ -187,24 +186,13 @@ public final class BlazeWorkspace {
/**
* Initializes a CommandEnvironment to execute a command in this workspace.
*
- * <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.
- *
- * @param warnings a list of warnings to which the CommandEnvironment can add any warning
- * generated during initialization. This is needed because Blaze's output handling is not yet
- * fully configured at this point.
+ * <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(
- Command command, OptionsProvider options, List<String> warnings) {
- CommandEnvironment env =
- new CommandEnvironment(
- runtime,
- this,
- new EventBus(eventBusExceptionHandler),
- Thread.currentThread(),
- command,
- options,
- warnings);
+ public CommandEnvironment initCommand(Command command, OptionsProvider options) {
+ CommandEnvironment env = new CommandEnvironment(
+ runtime, this, new EventBus(eventBusExceptionHandler), Thread.currentThread(), command,
+ options);
skyframeExecutor.setClientEnv(env.getClientEnv());
return env;
}