Deprecated
use liquibase.integration.commandline.LiquibaseCommandLine.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| private static enum | |
| private static enum | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected String | |
| protected String | |
| protected Map | |
| protected String | |
| protected String | |
| protected ClassLoader | |
| protected String | |
| protected String | |
| protected Set | |
| protected String | |
| private static final ResourceBundle | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected Boolean | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| private static final String | |
| protected String | |
| protected String | |
| protected Boolean | |
| protected String | |
| protected Boolean | |
| protected Boolean | |
| protected Boolean | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| private static final Logger | |
| protected String | |
| protected String | |
| private static final Boolean | |
| public static Map | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| private static final boolean | |
| private static PrintStream | |
| protected String | |
| protected String | |
| protected Boolean | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected Boolean | |
| protected String | |
| public static boolean | |
| protected List | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| private static final int[] | |
| protected String | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| protected void | |
| protected static Main. | |
| private void | checkForMalformedCommandParameters(final List<String>
an array of Strings to which messages for issues found will be added messages)Checks for incorrectly written command line parameters and, if any problems are found, returns the list of issues in String form. |
| private void | checkForMissingCommandParameters(final List<String>
an array of Strings to which messages for issues found will be added messages)Checks for missing command line parameters and, if any problems are found, returns the list of issues in String form. |
| private void | checkForUnexpectedCommandParameter(List<String>
an array of Strings to which messages for issues found will be added messages)Checks for unexpected (unknown) command line parameters and, if any problems are found, returns the list of issues in String form. |
| protected List | Returns: an empty List if successful, or a list of error messagesAfter parsing, checks if the given combination of main command and can be executed. |
| protected ClassLoader | |
| private CommandScope | |
| protected void | |
| private static File | |
| protected String[] | |
| private String | Returns: the command argument, if one is given. Otherwise null.Return the first "parameter" from the command line that does NOT have the form of parameter=value. |
| private String | Returns: the user-specified value for paramName, or defaultValuename of the parameter paramName, String return value if parameter is not given defaultValue)Returns the value for a command line parameter of the form parameterName=value, or defaultValue if that parameter has not been specified by the user. |
| private Field | |
| private ResourceAccessor | getFileOpenerResourceAccessor()
Encapsulate code used to load the correct resource accessor providing legacy Cli compatibility |
| private String | |
| private OutputStream | |
| private Writer | |
| private String | |
| private void | handleUpdateException(Database database, LiquibaseException exception, DefaultChangeExecListener defaultChangeExecListener, boolean rollbackOnError)
|
| private static boolean | Returns: true if a ChangeLog is required, false if not.the command to test command)Returns true if the parameter --changeLogFile is requited for a given command |
| private static boolean | |
| private boolean | |
| private static boolean | Returns: true if arg is a valid main command and needs no special parameters, false in all other casesthe main command to test arg)Returns true if the given main command arg needs no special parameters. |
| private static boolean | Returns: true if stdout needs for a command, false if notthe command to check command)Returns true if the given command requires stdout |
| public boolean | Returns: true if running under some variant of MS Windows, false otherwise.Determines if this program is executed on a Microsoft Windows-type of operating system. |
| private void | |
| public static void | |
| private void | parseDefaultPropertyFileFromFile(final File
path and file name to the the property file potentialPropertyFile)Open a regular property file (not embedded in a resource - use |
| private void | parseDefaultPropertyFileFromResource(File
location and file name of the property file potentialPropertyFile)Open a property file that is embedded as a Java resource and parse it. |
| protected void | parseDefaultPropertyFiles()
Search for both liquibase.properties (or whatever the name of the current defaultsFile is) and the "local" variant liquibase.local.properties. |
| private static Level | |
| private void | parseOptionArgument(String
the option to parse (including the "--") arg, boolean okIfNotAField)Parses an option ("--someOption") from the command line |
| protected void | |
| protected void | parsePropertiesFile(InputStream
an InputStream from a Java properties file propertiesInputStream)Reads various execution parameters from an InputStream and sets our internal state according to the values found. |
| private void | parsePropertiesFileForNewCli(Properties props)
Most of the properties file is handled by the new CLI. |
| protected void | printHelp(List<String>
List of error messages errorMessages, PrintStream the output stream to write the text to stream)If any errors have been found, print the list of errors first, then print the command line help text. |
| protected void | printHelp(PrintStream
the output stream to write the help text to stream)Print instructions on how to use this program from the command line. |
| public static int | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | runUsingCommandFramework()
Run commands using the CommandFramework instead of directly setting up and calling other classes |
| private void | setDatabaseArgumentsToCommand(CommandScope command)
Set database arguments values received by Main class to the provided command scope. |
| protected static void | |
| public static PrintStream | |
| private void | setPreCompareArgumentsToCommand(CommandScope command)
Set database compare arguments values received by Main class to the provided command scope. |
| private void | setReferenceDatabaseArgumentsToCommand(CommandScope command)
Set reference database arguments values received by Main class to the provided command scope. |
| private static boolean | setupNeeded(Main main)
References Deprecated
Main is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private static String[] | |
| private void | validateCommandParameters(final List<String>
an array of Strings to which messages for issues found will be added messages)Checks the command line for correctness and reports on unexpected, missing and/or malformed parameters. |