public final class CommandLineUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
CommandLineUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
asCSList(java.lang.String[] values)
Create a single comma separated string out of a list of strings.
|
static java.lang.String |
protectAgainstShellMetas(java.lang.String argument)
Escapes and quotes command line arguments to keep shells from expanding/interpreting them.
|
public static java.lang.String protectAgainstShellMetas(java.lang.String argument)
argument
- the argument to protect.public static java.lang.String asCSList(java.lang.String[] values)
values
- an array of values.