Package org.jboss.as.test.shared
Class CliUtils
java.lang.Object
org.jboss.as.test.shared.CliUtils
CLI helper methods.
- Author:
- Josef Cacek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringasAbsolutePath(File file) Returns escaped absolute path of given File instance.static StringescapePath(String path) Escapes given path String for CLI.
-
Constructor Details
-
CliUtils
public CliUtils()
-
-
Method Details
-
escapePath
Escapes given path String for CLI.- Parameters:
path- path string to escape (must be not-null)- Returns:
- escaped path
-
asAbsolutePath
Returns escaped absolute path of given File instance.- Parameters:
file- instance to get the path from (must be not-null)- Returns:
- escaped absolute path
-