org.liquibase.maven.plugins
Class LiquibaseUpdateSQL
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
org.liquibase.maven.plugins.LiquibaseUpdateSQL
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class LiquibaseUpdateSQL
- extends AbstractLiquibaseUpdateMojo
Generates the SQL that is required to update the database to the current
version as specified in the DatabaseChangeLogs.
- Author:
- Peter Murray
|
Field Summary |
protected File |
migrationSqlOutputFile
The file to output the Migration SQL script to, if it exists it will be
overwritten. |
| Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo |
changelogCatalogName, changelogSchemaName, clearCheckSums, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, liquibaseShouldRun, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, systemProperties, url, username, verbose, wagonManager |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
migrationSqlOutputFile
protected File migrationSqlOutputFile
- The file to output the Migration SQL script to, if it exists it will be
overwritten.
LiquibaseUpdateSQL
public LiquibaseUpdateSQL()
isPromptOnNonLocalDatabase
protected boolean isPromptOnNonLocalDatabase()
- Overrides:
isPromptOnNonLocalDatabase in class AbstractLiquibaseMojo
doUpdate
protected void doUpdate(Liquibase liquibase)
throws LiquibaseException
- Description copied from class:
AbstractLiquibaseUpdateMojo
- Performs the actual "update" work on the database.
- Specified by:
doUpdate in class AbstractLiquibaseUpdateMojo
- Parameters:
liquibase - The Liquibase object to use to perform the "update".
- Throws:
LiquibaseException
createLiquibase
protected Liquibase createLiquibase(ResourceAccessor fo,
Database db)
throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
createLiquibase in class AbstractLiquibaseChangeLogMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
printSettings
protected void printSettings(String indent)
- Description copied from class:
AbstractLiquibaseMojo
- Prints the settings that have been set of defaulted for the plugin. These will only
be shown in verbose mode.
- Overrides:
printSettings in class AbstractLiquibaseUpdateMojo
- Parameters:
indent - The indent string to use when printing the settings.
cleanup
protected void cleanup(Database db)
- Overrides:
cleanup in class AbstractLiquibaseMojo
Copyright © 2015 Liquibase.org. All rights reserved.