Class ParameterUtil

java.lang.Object
liquibase.integration.commandline.util.ParameterUtil

public class ParameterUtil extends Object
Utility class for reading parameters from system properties, command line arguments and properties file.
  • Constructor Details

    • ParameterUtil

      public ParameterUtil()
  • Method Details

    • getParameter

      public static String getParameter(LiquibaseLauncherSettings.LiquibaseLauncherSetting param, String cmd, String[] args, boolean verifyDefaultsFile) throws IOException
      Get parameter from system properties, command line arguments and properties file.
      Parameters:
      param - parameter to get
      cmd - parameter aliases for cmdline/file
      args - command line arguments
      verifyDefaultsFile - whether to look for it in properties file or not
      Returns:
      parameter value
      Throws:
      IOException - if there is an error reading the properties file