public class ProcessLauncherImpl extends Object implements ProcessLauncher
| Constructor and Description |
|---|
ProcessLauncherImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExecutable(String binaryPath)
Returns true if given path is executable or not.
|
Process |
launch(String program,
List<String> args)
Launches a given program with a given list of arguments.
|
public Process launch(String program, List<String> args) throws IOException
ProcessLauncherlaunch in interface ProcessLauncherprogram - Program path to launch.args - Program arguments.IOException - If an I/O error occurs during process start.public boolean isExecutable(String binaryPath)
ProcessLauncherisExecutable in interface ProcessLauncherbinaryPath - Binary path.Copyright © 2020. All rights reserved.