Class ParameterUtil
java.lang.Object
liquibase.integration.commandline.util.ParameterUtil
Utility class for reading parameters from system properties, command line arguments and properties file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getParameter
(LiquibaseLauncherSettings.LiquibaseLauncherSetting param, String cmd, String[] args, boolean verifyDefaultsFile) Get parameter 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 getcmd
- parameter aliases for cmdline/fileargs
- command line argumentsverifyDefaultsFile
- whether to look for it in properties file or not- Returns:
- parameter value
- Throws:
IOException
- if there is an error reading the properties file
-