public class ProcessExecutor extends Object implements AutoCloseable
| Constructor and Description |
|---|
ProcessExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
executeProcessCommand(String command)
Execute command and wait until command is finished.
|
boolean |
executeProcessCommand(String command,
Path directory)
Execute command and wait until command is finished.
|
public boolean executeProcessCommand(String command)
command - Command to be executed.public boolean executeProcessCommand(String command, Path directory)
command - Command to be executed.directory - Directory where the command should be executed.public void close()
close in interface AutoCloseableCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.