public class CommandLineUtil
extends java.lang.Object
Constructor and Description |
---|
CommandLineUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeParameterOnWindows(java.lang.String parameter,
boolean isWinShell) |
static java.lang.String |
extractPresentableName(java.lang.String commandLine) |
static java.lang.String |
getWinShellName() |
static boolean |
hasWinShellSpecialChars(java.lang.String parameter) |
static java.lang.String |
posixQuote(java.lang.String argument)
When necessary, quotes the specified argument with single quotes, according to the POSIX shell rules,
replacing single quotes with hardly readable but recursion-safe
'"'"' . |
static java.lang.String |
specialQuote(java.lang.String parameter) |
static java.util.List<java.lang.String> |
toCommandLine(java.util.List<java.lang.String> command) |
static java.util.List<java.lang.String> |
toCommandLine(java.lang.String command,
java.util.List<java.lang.String> parameters) |
static java.util.List<java.lang.String> |
toCommandLine(java.lang.String command,
java.util.List<java.lang.String> parameters,
Platform platform) |
public static java.lang.String specialQuote(java.lang.String parameter)
public static java.util.List<java.lang.String> toCommandLine(java.util.List<java.lang.String> command)
public static java.util.List<java.lang.String> toCommandLine(java.lang.String command, java.util.List<java.lang.String> parameters)
public static java.util.List<java.lang.String> toCommandLine(java.lang.String command, java.util.List<java.lang.String> parameters, Platform platform)
public static java.lang.String getWinShellName()
public static java.lang.String escapeParameterOnWindows(java.lang.String parameter, boolean isWinShell)
public static java.lang.String extractPresentableName(java.lang.String commandLine)
public static boolean hasWinShellSpecialChars(java.lang.String parameter)
public static java.lang.String posixQuote(java.lang.String argument)
'"'"'
.