workingDirectory| Constructor and Description |
|---|
PexStep(ProjectFilesystem filesystem,
com.google.common.collect.ImmutableMap<String,String> environment,
com.google.common.collect.ImmutableList<String> commandPrefix,
Path pythonPath,
PythonVersion pythonVersion,
Path destination,
String entry,
com.facebook.buck.features.python.PythonResolvedPackageComponents components,
com.google.common.collect.ImmutableSet<String> preloadLibraries) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.collect.ImmutableList<String> |
getCommandPrefix() |
com.google.common.collect.ImmutableMap<String,String> |
getEnvironmentVariables(ExecutionContext context)
Returns the environment variables to include when running this
ShellStep. |
protected com.google.common.collect.ImmutableList<String> |
getShellCommandInternal(ExecutionContext context)
Implementations of this method should not have any observable side-effects.
|
String |
getShortName() |
protected Optional<String> |
getStdin(ExecutionContext context)
Return the manifest as a JSON blob to write to the pex processes stdin.
|
addOptions, execute, getDescription, getDuration, getExitCodeFromResult, getShellCommand, getShellCommandArgsForDescription, getStderr, getStdout, getTimeout, getTimeoutHandler, shouldPrintStderr, shouldPrintStdoutpublic PexStep(ProjectFilesystem filesystem, com.google.common.collect.ImmutableMap<String,String> environment, com.google.common.collect.ImmutableList<String> commandPrefix, Path pythonPath, PythonVersion pythonVersion, Path destination, String entry, com.facebook.buck.features.python.PythonResolvedPackageComponents components, com.google.common.collect.ImmutableSet<String> preloadLibraries)
public String getShortName()
protected Optional<String> getStdin(ExecutionContext context) throws IOException
We use stdin rather than passing as an argument to the processes since manifest files can occasionally get extremely large, and surpass exec/shell limits on arguments.
getStdin in class ShellStepIOExceptionprotected com.google.common.collect.ImmutableList<String> getShellCommandInternal(ExecutionContext context)
ShellStepgetShellCommandInternal in class ShellSteppublic com.google.common.collect.ImmutableMap<String,String> getEnvironmentVariables(ExecutionContext context)
ShellStepShellStep.
By default, this method returns an empty map.
getEnvironmentVariables in class ShellStepcontext - that may be useful when determining environment variables to include.protected com.google.common.collect.ImmutableList<String> getCommandPrefix()