org.liquibase.maven.plugins
Class LiquibaseMigrateSQL

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.LiquibaseMigrateSQL
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

Deprecated. Use LiquibaseUpdateSQL or Maven goal "updateSQL" instead.

public class LiquibaseMigrateSQL
extends AbstractLiquibaseUpdateMojo

Creates an SQL migration script using the provided DatabaseChangeLog(s) comparing what already exists in the database to what is defined in the DataBaseChangeLog(s).

Author:
Peter Murray

Field Summary
protected  File migrationSqlOutputFile
          Deprecated. The file to output the Migration SQL script to, if it exists it will be overwritten.
 
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
changelogCatalogName, changelogSchemaName, clearCheckSums, databaseClass, defaultCatalogName, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, skip, systemProperties, url, username, verbose, wagonManager
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
LiquibaseMigrateSQL()
          Deprecated.  
 
Method Summary
protected  void cleanup(Database db)
          Deprecated.  
 void configureFieldsAndValues(ResourceAccessor fo)
          Deprecated.  
protected  Liquibase createLiquibase(ResourceAccessor fo, Database db)
          Deprecated.  
protected  void doUpdate(Liquibase liquibase)
          Deprecated. Performs the actual "update" work on the database.
protected  boolean isPromptOnNonLocalDatabase()
          Deprecated.  
protected  void printSettings(String indent)
          Deprecated. 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, getFileOpener
 
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
execute, getClassLoaderIncludingProjectClasspath, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, 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

migrationSqlOutputFile

protected File migrationSqlOutputFile
Deprecated. 
The file to output the Migration SQL script to, if it exists it will be overwritten.

Constructor Detail

LiquibaseMigrateSQL

public LiquibaseMigrateSQL()
Deprecated. 
Method Detail

configureFieldsAndValues

public void configureFieldsAndValues(ResourceAccessor fo)
                              throws org.apache.maven.plugin.MojoExecutionException,
                                     org.apache.maven.plugin.MojoFailureException
Deprecated. 
Overrides:
configureFieldsAndValues in class AbstractLiquibaseMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

isPromptOnNonLocalDatabase

protected boolean isPromptOnNonLocalDatabase()
Deprecated. 
Overrides:
isPromptOnNonLocalDatabase in class AbstractLiquibaseMojo

doUpdate

protected void doUpdate(Liquibase liquibase)
                 throws LiquibaseException
Deprecated. 
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
Deprecated. 
Overrides:
createLiquibase in class AbstractLiquibaseChangeLogMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

printSettings

protected void printSettings(String indent)
Deprecated. 
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)
Deprecated. 
Overrides:
cleanup in class AbstractLiquibaseMojo


Copyright © 2014 Liquibase.org. All Rights Reserved.