org.liquibase.maven.plugins.LiquibaseReportStatusMojo Maven / Gradle / Ivy
package org.liquibase.maven.plugins;
import java.io.OutputStreamWriter;
import liquibase.Contexts;
import liquibase.LabelExpression;
import liquibase.Liquibase;
import liquibase.exception.LiquibaseException;
/**
* Prints which changesets need to be applied to the database.
*
* @author JAmes Atwill
* @goal status
*/
public class LiquibaseReportStatusMojo extends AbstractLiquibaseChangeLogMojo {
@Override
protected void performLiquibaseTask(Liquibase liquibase)
throws LiquibaseException {
liquibase.reportStatus(true, new Contexts(contexts), new LabelExpression(labels), new OutputStreamWriter(
System.out));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy