org.liquibase.maven.plugins
Class LiquibaseGenerateChangeLogMojo

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

public class LiquibaseGenerateChangeLogMojo
extends AbstractLiquibaseMojo

Generates SQL that marks all unapplied changes as applied.

Since:
2.0.6
Author:
Marcello Teodori

Field Summary
protected  String contexts
          are required.
protected  String outputChangeLogFile
          The target change log file to output to.
 
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
LiquibaseGenerateChangeLogMojo()
           
 
Method Summary
protected  void performLiquibaseTask(Liquibase liquibase)
           
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.AbstractLiquibaseMojo
checkRequiredParametersAreSpecified, cleanup, configureFieldsAndValues, createLiquibase, execute, getClassLoaderIncludingProjectClasspath, getFileOpener, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, 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

contexts

protected String contexts
are required. If no context is specified then ALL contexts will be executed.


outputChangeLogFile

protected String outputChangeLogFile
The target change log file to output to. If this is null then the output will be to the screen.

Constructor Detail

LiquibaseGenerateChangeLogMojo

public LiquibaseGenerateChangeLogMojo()
Method Detail

performLiquibaseTask

protected void performLiquibaseTask(Liquibase liquibase)
                             throws LiquibaseException
Specified by:
performLiquibaseTask in class AbstractLiquibaseMojo
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 AbstractLiquibaseMojo
Parameters:
indent - The indent string to use when printing the settings.


Copyright © 2013 Liquibase.org. All Rights Reserved.