liquibase.integration.commandline
Class Main
java.lang.Object
liquibase.integration.commandline.Main
public class Main
- extends Object
Class for executing Liquibase via the command line.
Constructor Summary |
Main()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Main
public Main()
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.