public class CommandLine extends Object
Constructor and Description |
---|
CommandLine() |
Modifier and Type | Method and Description |
---|---|
static boolean |
executableExists(String executable)
Check whether an executable exists, either at a specific path (if a full path is given) or
on the PATH.
|
static String[] |
getSystemPath() |
static String |
runShellCommand(String... command)
Run a shell command synchronously.
|
public static String runShellCommand(String... command)
command
- command to run and argumentspublic static boolean executableExists(String executable)
executable
- the name of an executable on the PATH or a complete path to an executable that may/may not exist@NotNull public static String[] getSystemPath()
Copyright © 2017. All rights reserved.