public abstract class BuckRunSpec extends Object
Constructor and Description |
---|
BuckRunSpec() |
Modifier and Type | Method and Description |
---|---|
abstract com.google.common.collect.ImmutableList<String> |
getArgv()
The arguments to invoke the command.
|
abstract Path |
getCwd()
The PWD where the command should be run from
|
abstract com.google.common.collect.ImmutableMap<String,String> |
getEnvp()
A mapping of environment variables that should be set when invoking the command
|
abstract boolean |
getIsFixScript()
Whether the program is a 'fix' script or not
|
Path |
getPath()
The path to the binary to invoke
|
static BuckRunSpec |
of(com.google.common.collect.ImmutableList<String> argv,
com.google.common.collect.ImmutableMap<String,String> envp,
Path cwd,
boolean isFixScript) |
@Value.Derived public Path getPath()
public abstract com.google.common.collect.ImmutableList<String> getArgv()
public abstract com.google.common.collect.ImmutableMap<String,String> getEnvp()
public abstract Path getCwd()
public abstract boolean getIsFixScript()
This can affect things like signal handling, exit codes and how the program is actually executed in the wrapper
public static BuckRunSpec of(com.google.common.collect.ImmutableList<String> argv, com.google.common.collect.ImmutableMap<String,String> envp, Path cwd, boolean isFixScript)