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 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 databaseClass
           
protected  String dataDir
           
protected  String defaultSchemaName
           
protected  String defaultsFile
           
protected  String diffTypes
           
protected  String driver
           
protected  String driverPropertiesFile
           
protected  Boolean includeSystemClasspath
           
protected  String logFile
           
protected  String logLevel
           
protected  String password
           
protected  Boolean promptForNonLocalDatabase
           
protected  String referenceDriver
           
protected  String referencePassword
           
protected  String referenceUrl
           
protected  String referenceUsername
           
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)
           
 
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

changeLogFile

protected String changeLogFile

classpath

protected String classpath

contexts

protected String contexts

driverPropertiesFile

protected String driverPropertiesFile

promptForNonLocalDatabase

protected Boolean promptForNonLocalDatabase

includeSystemClasspath

protected Boolean includeSystemClasspath

defaultsFile

protected String defaultsFile

diffTypes

protected String diffTypes

changeSetAuthor

protected String changeSetAuthor

changeSetContext

protected String changeSetContext

dataDir

protected String dataDir

referenceDriver

protected String referenceDriver

referenceUrl

protected String referenceUrl

referenceUsername

protected String referenceUsername

referencePassword

protected String referencePassword

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
Constructor Detail

Main

public Main()
Method Detail

main

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

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 © 2011 Liquibase.org. All Rights Reserved.