org.liquibase.maven.plugins
Class LiquibaseUpdate

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.liquibase.maven.plugins.AbstractLiquibaseMojo
          extended by org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
              extended by org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
                  extended by org.liquibase.maven.plugins.LiquibaseUpdate
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class LiquibaseUpdate
extends AbstractLiquibaseUpdateMojo

Applies the DatabaseChangeLogs to the database. Useful as part of the build process.

Author:
Peter Murray

Field Summary
protected  boolean dropFirst
          Whether or not to perform a drop on the database before executing the change.
 
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
changesToApply
 
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
changeLogFile, contexts
 
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
clearCheckSums, databaseClass, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, skip, systemProperties, url, username, verbose, wagonManager
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
LiquibaseUpdate()
           
 
Method Summary
protected  void doUpdate(Liquibase liquibase)
          Performs the actual "update" work on the database.
protected  void printSettings(String indent)
          Prints the settings that have been set of defaulted for the plugin.
 
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
performLiquibaseTask
 
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
checkRequiredParametersAreSpecified, createLiquibase, getFileOpener
 
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
cleanup, configureFieldsAndValues, execute, getLiquibase, getMavenArtifactClassLoader, isPromptOnNonLocalDatabase, parsePropertiesFile
 
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
 

Field Detail

dropFirst

protected boolean dropFirst
Whether or not to perform a drop on the database before executing the change.

Constructor Detail

LiquibaseUpdate

public LiquibaseUpdate()
Method Detail

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

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.


Copyright © 2004-2011 Liquibase.org. All Rights Reserved.