|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
public abstract class AbstractLiquibaseChangeLogMojo
A Liquibase MOJO that requires the user to provide a DatabaseChangeLogFile to be able to perform any actions on the database.
| Field Summary | |
|---|---|
protected String |
changeLogFile
Specifies the change log file to use for Liquibase. |
protected String |
contexts
The Liquibase contexts to execute, which can be "," separated if multiple contexts are required. |
protected String |
labels
The Liquibase labels to execute, which can be "," separated if multiple labels are required or a more complex expression. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractLiquibaseChangeLogMojo()
|
|
| Method Summary | |
|---|---|
protected void |
checkRequiredParametersAreSpecified()
Performs some validation after the properties file has been loaded checking that all properties required have been specified. |
protected Liquibase |
createLiquibase(ResourceAccessor fo,
Database db)
|
protected ResourceAccessor |
getFileOpener(ClassLoader cl)
|
protected void |
performLiquibaseTask(Liquibase liquibase)
Performs the actual Liquibase task on the database using the fully configured 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 |
|---|
cleanup, configureFieldsAndValues, execute, getClassLoaderIncludingProjectClasspath, 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 |
|---|
protected String changeLogFile
protected String contexts
protected String labels
| Constructor Detail |
|---|
public AbstractLiquibaseChangeLogMojo()
| Method Detail |
|---|
protected void checkRequiredParametersAreSpecified()
throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojo
checkRequiredParametersAreSpecified in class AbstractLiquibaseMojoorg.apache.maven.plugin.MojoFailureException - If any property that is required has not been
specified.
protected void performLiquibaseTask(Liquibase liquibase)
throws LiquibaseException
Liquibase.
performLiquibaseTask in class AbstractLiquibaseMojoliquibase - The Liquibase that has been fully
configured to run the desired database task.
LiquibaseExceptionprotected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings in class AbstractLiquibaseMojoindent - The indent string to use when printing the settings.protected ResourceAccessor getFileOpener(ClassLoader cl)
getFileOpener in class AbstractLiquibaseMojo
protected Liquibase createLiquibase(ResourceAccessor fo,
Database db)
throws org.apache.maven.plugin.MojoExecutionException
createLiquibase in class AbstractLiquibaseMojoorg.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||