public class Main extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Main.CodePointCheck
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected String |
changeExecListenerClass
Deprecated.
|
protected String |
changeExecListenerPropertiesFile
Deprecated.
|
protected String |
changeLogFile
Deprecated.
|
protected Map<String,Object> |
changeLogParameters
Deprecated.
|
protected String |
changeSetAuthor
Deprecated.
|
protected String |
changeSetContext
Deprecated.
|
protected ClassLoader |
classLoader
Deprecated.
|
protected String |
classpath
Deprecated.
|
protected String |
command
Deprecated.
|
protected Set<String> |
commandParams
Deprecated.
|
protected String |
contexts
Deprecated.
|
protected String |
currentDateTimeFunction
Deprecated.
|
protected String |
databaseChangeLogLockTableName
Deprecated.
|
protected String |
databaseChangeLogTableName
Deprecated.
|
protected String |
databaseChangeLogTablespaceName
Deprecated.
|
protected String |
databaseClass
Deprecated.
|
protected String |
dataOutputDirectory
Deprecated.
|
protected Boolean |
deactivate
Deprecated.
|
protected String |
defaultCatalogName
Deprecated.
|
protected String |
defaultSchemaName
Deprecated.
|
protected String |
defaultsFile
Deprecated.
|
protected String |
delimiter
Deprecated.
|
protected String |
diffTypes
Deprecated.
|
protected String |
driver
Deprecated.
|
protected String |
driverPropertiesFile
Deprecated.
|
protected String |
excludeObjects
Deprecated.
|
protected String |
format
Deprecated.
|
protected String |
hubConnectionId
Deprecated.
|
protected String |
hubProjectId
Deprecated.
|
protected String |
hubProjectName
Deprecated.
|
protected Boolean |
includeCatalog
Deprecated.
|
protected String |
includeObjects
Deprecated.
|
protected Boolean |
includeSchema
Deprecated.
|
protected Boolean |
includeSystemClasspath
Deprecated.
|
protected Boolean |
includeTablespace
Deprecated.
|
protected String |
labelFilter
Deprecated.
|
protected String |
labels
Deprecated.
|
protected String |
liquibaseCatalogName
Deprecated.
|
protected String |
liquibaseHubApiKey
Deprecated.
|
protected String |
liquibaseHubUrl
Deprecated.
|
protected String |
liquibaseProLicenseKey
Deprecated.
|
protected String |
liquibaseSchemaName
Deprecated.
|
protected String |
logFile
Deprecated.
|
protected String |
logLevel
Deprecated.
|
static Map<String,String> |
newCliChangelogParameters
Deprecated.
|
protected String |
outputDefaultCatalog
Deprecated.
|
protected String |
outputDefaultSchema
Deprecated.
|
protected String |
outputFile
Deprecated.
|
protected String |
outputSchemasAs
Deprecated.
|
protected String |
overwriteOutputFile
Deprecated.
|
protected String |
password
Deprecated.
|
protected Boolean |
promptForNonLocalDatabase
Deprecated.
|
protected String |
propertyProviderClass
Deprecated.
|
protected String |
referenceDefaultCatalogName
Deprecated.
|
protected String |
referenceDefaultSchemaName
Deprecated.
|
protected String |
referenceDriver
Deprecated.
|
protected String |
referencePassword
Deprecated.
|
protected String |
referenceSchemas
Deprecated.
|
protected String |
referenceUrl
Deprecated.
|
protected String |
referenceUsername
Deprecated.
|
protected Boolean |
rollbackOnError
Deprecated.
|
protected String |
rollbackScript
Deprecated.
|
static boolean |
runningFromNewCli
Deprecated.
|
protected List<CatalogAndSchema> |
schemaList
Deprecated.
|
protected String |
schemas
Deprecated.
|
protected String |
showSummary
Deprecated.
|
protected String |
snapshotFormat
Deprecated.
|
protected String |
sqlFile
Deprecated.
|
protected String |
url
Deprecated.
|
protected String |
username
Deprecated.
|
Constructor and Description |
---|
Main()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyDefaults()
Deprecated.
|
protected static Main.CodePointCheck |
checkArg(String arg)
Deprecated.
Check the string for known characters which cannot be handled
|
protected List<String> |
checkSetup()
Deprecated.
After parsing, checks if the given combination of main command and can be executed.
|
protected ClassLoader |
configureClassLoader()
Deprecated.
|
protected void |
doMigration()
Deprecated.
Do the actual database migration, i.e.
|
protected String[] |
fixupArgs(String[] args)
Deprecated.
On windows machines, it splits args on '=' signs.
|
boolean |
isWindows()
Deprecated.
Determines if this program is executed on a Microsoft Windows-type of operating system.
|
static void |
main(String[] args)
Deprecated.
Entry point.
|
protected void |
parseDefaultPropertyFiles()
Deprecated.
Search for both liquibase.properties (or whatever the name of the current
defaultsFile is) and the "local" variant liquibase.local.properties.
|
protected void |
parseOptions(String[] paramArgs)
Deprecated.
Parses the command line options.
|
protected void |
parsePropertiesFile(InputStream propertiesInputStream)
Deprecated.
Reads various execution parameters from an InputStream and sets our internal state according to the values
found.
|
protected void |
printHelp(List<String> errorMessages,
PrintStream stream)
Deprecated.
If any errors have been found, print the list of errors first, then print the command line help text.
|
protected void |
printHelp(PrintStream stream)
Deprecated.
Print instructions on how to use this program from the command line.
|
static int |
run(String[] args)
Deprecated.
Process the command line arguments and perform the appropriate main action (update, rollback etc.)
|
protected static void |
setLogLevel(LogService logService,
Logger rootLogger,
Logger liquibaseLogger,
Level level)
Deprecated.
|
static PrintStream |
setOutputStream(PrintStream outputStream)
Deprecated.
Sets the default outputstream to use.
|
public static boolean runningFromNewCli
protected ClassLoader classLoader
protected String driver
protected String username
protected String password
protected String url
protected String hubConnectionId
protected String hubProjectId
protected String hubProjectName
protected String databaseClass
protected String defaultSchemaName
protected String outputDefaultSchema
protected String outputDefaultCatalog
protected String liquibaseCatalogName
protected String liquibaseSchemaName
protected String databaseChangeLogTableName
protected String databaseChangeLogLockTableName
protected String databaseChangeLogTablespaceName
protected String defaultCatalogName
protected String changeLogFile
protected String overwriteOutputFile
protected String classpath
protected String contexts
protected String labels
protected String labelFilter
protected String driverPropertiesFile
protected String propertyProviderClass
protected String changeExecListenerClass
protected String changeExecListenerPropertiesFile
protected Boolean promptForNonLocalDatabase
protected Boolean includeSystemClasspath
protected String defaultsFile
protected String diffTypes
protected String changeSetAuthor
protected String changeSetContext
protected String dataOutputDirectory
protected String referenceDriver
protected String referenceUrl
protected String referenceUsername
protected String referencePassword
protected String referenceDefaultCatalogName
protected String referenceDefaultSchemaName
protected String currentDateTimeFunction
protected String command
protected String logLevel
protected String logFile
protected String outputFile
protected String excludeObjects
protected Boolean includeCatalog
protected String includeObjects
protected Boolean includeSchema
protected Boolean includeTablespace
protected Boolean deactivate
protected String outputSchemasAs
protected String referenceSchemas
protected String schemas
protected String snapshotFormat
protected String liquibaseProLicenseKey
protected String liquibaseHubApiKey
protected String liquibaseHubUrl
protected String sqlFile
protected String delimiter
protected String rollbackScript
protected Boolean rollbackOnError
protected List<CatalogAndSchema> schemaList
protected String format
protected String showSummary
public static void main(String[] args)
args
- the command line argumentspublic static int run(String[] args) throws Exception
args
- the command line argumentsLiquibaseException
- a runtime exceptionException
protected static void setLogLevel(LogService logService, Logger rootLogger, Logger liquibaseLogger, Level level)
protected void parseDefaultPropertyFiles() throws CommandLineParsingException
CommandLineParsingException
- if an error occurs during parsingprotected String[] fixupArgs(String[] args)
protected List<String> checkSetup()
protected void parsePropertiesFile(InputStream propertiesInputStream) throws IOException, CommandLineParsingException
propertiesInputStream
- an InputStream from a Java properties fileIOException
- if there is a problem reading the InputStreamCommandLineParsingException
- if an invalid property is encounteredprotected void printHelp(List<String> errorMessages, PrintStream stream)
errorMessages
- List of error messagesstream
- the output stream to write the text toprotected void printHelp(PrintStream stream)
stream
- the output stream to write the help text toprotected static Main.CodePointCheck checkArg(String arg)
arg
- Input parameter to checkprotected void parseOptions(String[] paramArgs) throws CommandLineParsingException
paramArgs
- the arguments to parseCommandLineParsingException
- thrown if an invalid argument is passedprotected void applyDefaults()
protected ClassLoader configureClassLoader() throws CommandLineParsingException
CommandLineParsingException
protected void doMigration() throws Exception
Exception
public static PrintStream setOutputStream(PrintStream outputStream)
public boolean isWindows()
Copyright © 2023 Liquibase.org. All rights reserved.