java.lang.Object
com.pervasive.datarush.commons.util.ProcessBuilders
Provides various utilities to use when working with the
ProcessBuilder class.-
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessBuilderQuotes command line args, performing proper escaping.static StringQuotes command a line argument, performing proper escaping.Quotes command line args, performing proper escaping.
-
Method Details
-
builder
Quotes command line args, performing proper escaping. This is necessary to workaround a bug on windows where arguments are not being property escaped.- Parameters:
args- the list of unquoted arguments- Returns:
- a ProcessBuilder with the args quoted
-
quote
Quotes command line args, performing proper escaping. This is necessary to workaround a bug on windows where arguments are not being property escaped.- Parameters:
args- the list of unquoted arguments- Returns:
- the quoted arguments
-
quote
Quotes command a line argument, performing proper escaping. This is necessary to workaround a bug on windows where arguments are not being property escaped.- Parameters:
arg- the unquoted argument- Returns:
- the quoted argument
-