Package jp.vmi.selenium.selenese.utils
Class CommandLineUtils
java.lang.Object
jp.vmi.selenium.selenese.utils.CommandLineUtils
public final class CommandLineUtils extends Object
Command line utilities.
-
Method Summary
Modifier and Type Method Description static voidaddEscapedArgumentOnUnix(StringBuilder buffer, String arg)Add command line escaped argument to StringBuilder on Unix.static voidaddEscapedArgumentOnWindows(StringBuilder buffer, String arg)Add command line escaped argument to StringBuilder on Windows.static StringespaceCommandLineArgs(String[] args)Escape command line arguments.
-
Method Details
-
addEscapedArgumentOnWindows
Add command line escaped argument to StringBuilder on Windows.Escape rules on Windows Plain Escaped abc ⇒ "abc" a\b\c ⇒ "a\b\c" a\b\c\ ⇒ "a\b\c\\" %abc% ⇒ %"abc"% %a\b\c\% ⇒ %"a\b\c\\"% - Parameters:
buffer- StringBuilder.arg- argument.
-
addEscapedArgumentOnUnix
Add command line escaped argument to StringBuilder on Unix.Escape rules on Unix Plain Escaped abc ⇒ 'abc' a'b'c ⇒ 'a'\''b'\''c' 'abc' ⇒ \''abc'\' - Parameters:
buffer- StringBuilder.arg- argument.
-
espaceCommandLineArgs
Escape command line arguments.- Parameters:
args- command line arguments.- Returns:
- escaped string of command line arguments.
-