Class DirectProgramRunner
- java.lang.Object
-
- com.facebook.buck.shell.programrunner.DirectProgramRunner
-
- All Implemented Interfaces:
ProgramRunner
public class DirectProgramRunner extends Object implements ProgramRunner
ProgramRunner
that do not change the execution of a program.
-
-
Constructor Summary
Constructors Constructor Description DirectProgramRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<String>
enhanceCommandLine(com.google.common.collect.ImmutableList<String> commandLine)
Change program command line with arguments specific to these parameters.com.google.common.collect.ImmutableList<String>
enhanceCommandLineForDescription(com.google.common.collect.ImmutableList<String> commandLine)
Change program command line with arguments specific to these parameters.void
prepareForRun(ProjectFilesystem projectFilesystem, Path programPath)
Initialization that needs to be performed before execution.
-
-
-
Method Detail
-
prepareForRun
public void prepareForRun(ProjectFilesystem projectFilesystem, Path programPath)
Description copied from interface:ProgramRunner
Initialization that needs to be performed before execution.- Specified by:
prepareForRun
in interfaceProgramRunner
-
enhanceCommandLine
public com.google.common.collect.ImmutableList<String> enhanceCommandLine(com.google.common.collect.ImmutableList<String> commandLine)
Description copied from interface:ProgramRunner
Change program command line with arguments specific to these parameters.- Specified by:
enhanceCommandLine
in interfaceProgramRunner
-
enhanceCommandLineForDescription
public com.google.common.collect.ImmutableList<String> enhanceCommandLineForDescription(com.google.common.collect.ImmutableList<String> commandLine)
Description copied from interface:ProgramRunner
Change program command line with arguments specific to these parameters. This is primarily used to construct new command line beforeProgramRunner.prepareForRun(com.facebook.buck.io.filesystem.ProjectFilesystem, java.nio.file.Path)
was called.- Specified by:
enhanceCommandLineForDescription
in interfaceProgramRunner
-
-