Package com.carrotsearch.procfork
Interface Launcher
- All Known Implementing Classes:
ProcessBuilderLauncher
public interface Launcher
An abstraction layer over the functionality required to fork a subprocess and collect its output.
-
Method Summary
Modifier and Type Method Description Launcherarg(java.lang.String value)Launcherargs(java.lang.String... values)Launchercwd(java.nio.file.Path cwd)Launcherenvvar(java.lang.String key, java.lang.String value)Launcherexecutable(java.nio.file.Path executable)ForkedProcessexecute()Execute and return the resulting process handle/ wrapper.Launcherinput(java.nio.file.Path input)LauncherviaShellLauncher()
-
Method Details
-
executable
-
cwd
-
viaShellLauncher
Launcher viaShellLauncher() -
arg
-
args
-
envvar
-
input
-
execute
Execute and return the resulting process handle/ wrapper.- Throws:
java.io.IOException
-