liquibase.integration.commandline
Class Main

java.lang.Object
  extended by liquibase.integration.commandline.Main

public class Main
extends Object

Class for executing Liquibase via the command line.


Field Summary
protected  String changeExecListenerClass
           
protected  String changeExecListenerPropertiesFile
           
protected  String changeLogFile
           
protected  Map<String,Object> changeLogParameters
           
protected  String changeSetAuthor
           
protected  String changeSetContext
           
protected  ClassLoader classLoader
           
protected  String classpath
           
protected  String command
           
protected  Set<String> commandParams
           
protected  String contexts
           
protected  String currentDateTimeFunction
           
protected  String databaseChangeLogLockTableName
           
protected  String databaseChangeLogTableName
           
protected  String databaseClass
           
protected  String dataOutputDirectory
           
protected  String defaultCatalogName
           
protected  String defaultSchemaName
           
protected  String defaultsFile
           
protected  String diffTypes
           
protected  String driver
           
protected  String driverPropertiesFile
           
protected  Boolean includeSystemClasspath
           
protected  String labels
           
protected  String liquibaseCatalogName
           
protected  String liquibaseSchemaName
           
protected  String logFile
           
protected  String logLevel
           
protected  String outputDefaultCatalog
           
protected  String outputDefaultSchema
           
protected  String outputFile
           
protected  String password
           
protected  Boolean promptForNonLocalDatabase
           
protected  String propertyProviderClass
           
protected  String referenceDefaultCatalogName
           
protected  String referenceDefaultSchemaName
           
protected  String referenceDriver
           
protected  String referencePassword
           
protected  String referenceUrl
           
protected  String referenceUsername
           
protected  Boolean strict
           
protected  String url
           
protected  String username
           
 
Constructor Summary
Main()
           
 
Method Summary
protected  void applyDefaults()
           
protected  List<String> checkSetup()
           
protected  void configureClassLoader()
           
protected  void doMigration()
           
protected  String[] fixupArgs(String[] args)
          On windows machines, it splits args on '=' signs.
 boolean isWindows()
           
static void main(String[] args)
           
protected  void parseOptions(String[] args)
           
protected  void parsePropertiesFile(InputStream propertiesInputStream)
           
protected  void printHelp(List<String> errorMessages, PrintStream stream)
           
protected  void printHelp(PrintStream stream)
           
protected  void printWarning(List<String> warningMessages, PrintStream stream)
           
static void run(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected ClassLoader classLoader

driver

protected String driver

username

protected String username

password

protected String password

url

protected String url

databaseClass

protected String databaseClass

defaultSchemaName

protected String defaultSchemaName

outputDefaultSchema

protected String outputDefaultSchema

outputDefaultCatalog

protected String outputDefaultCatalog

liquibaseCatalogName

protected String liquibaseCatalogName

liquibaseSchemaName

protected String liquibaseSchemaName

databaseChangeLogTableName

protected String databaseChangeLogTableName

databaseChangeLogLockTableName

protected String databaseChangeLogLockTableName

defaultCatalogName

protected String defaultCatalogName

changeLogFile

protected String changeLogFile

classpath

protected String classpath

contexts

protected String contexts

labels

protected String labels

driverPropertiesFile

protected String driverPropertiesFile

propertyProviderClass

protected String propertyProviderClass

changeExecListenerClass

protected String changeExecListenerClass

changeExecListenerPropertiesFile

protected String changeExecListenerPropertiesFile

promptForNonLocalDatabase

protected Boolean promptForNonLocalDatabase

includeSystemClasspath

protected Boolean includeSystemClasspath

strict

protected Boolean strict

defaultsFile

protected String defaultsFile

diffTypes

protected String diffTypes

changeSetAuthor

protected String changeSetAuthor

changeSetContext

protected String changeSetContext

dataOutputDirectory

protected String dataOutputDirectory

referenceDriver

protected String referenceDriver

referenceUrl

protected String referenceUrl

referenceUsername

protected String referenceUsername

referencePassword

protected String referencePassword

referenceDefaultCatalogName

protected String referenceDefaultCatalogName

referenceDefaultSchemaName

protected String referenceDefaultSchemaName

currentDateTimeFunction

protected String currentDateTimeFunction

command

protected String command

commandParams

protected Set<String> commandParams

logLevel

protected String logLevel

logFile

protected String logFile

changeLogParameters

protected Map<String,Object> changeLogParameters

outputFile

protected String outputFile
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
                 throws CommandLineParsingException,
                        IOException
Throws:
CommandLineParsingException
IOException

run

public static void run(String[] args)
                throws CommandLineParsingException,
                       IOException,
                       LiquibaseException
Throws:
CommandLineParsingException
IOException
LiquibaseException

fixupArgs

protected String[] fixupArgs(String[] args)
On windows machines, it splits args on '=' signs. Put it back like it was.


checkSetup

protected List<String> checkSetup()

parsePropertiesFile

protected void parsePropertiesFile(InputStream propertiesInputStream)
                            throws IOException,
                                   CommandLineParsingException
Throws:
IOException
CommandLineParsingException

printHelp

protected void printHelp(List<String> errorMessages,
                         PrintStream stream)

printWarning

protected void printWarning(List<String> warningMessages,
                            PrintStream stream)

printHelp

protected void printHelp(PrintStream stream)

parseOptions

protected void parseOptions(String[] args)
                     throws CommandLineParsingException
Throws:
CommandLineParsingException

applyDefaults

protected void applyDefaults()

configureClassLoader

protected void configureClassLoader()
                             throws CommandLineParsingException
Throws:
CommandLineParsingException

doMigration

protected void doMigration()
                    throws Exception
Throws:
Exception

isWindows

public boolean isWindows()


Copyright © 2016 Liquibase.org. All rights reserved.