Class CliUtils

java.lang.Object
org.jboss.as.test.shared.CliUtils

public class CliUtils extends Object
CLI helper methods.
Author:
Josef Cacek
  • Constructor Details

    • CliUtils

      public CliUtils()
  • Method Details

    • escapePath

      public static String escapePath(String path)
      Escapes given path String for CLI.
      Parameters:
      path - path string to escape (must be not-null)
      Returns:
      escaped path
    • asAbsolutePath

      public static String asAbsolutePath(File file)
      Returns escaped absolute path of given File instance.
      Parameters:
      file - instance to get the path from (must be not-null)
      Returns:
      escaped absolute path