Package org.liquibase.maven.plugins

Source Code of org.liquibase.maven.plugins.LiquibaseReportStatusMojo

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));
  }

}
TOP

Related Classes of org.liquibase.maven.plugins.LiquibaseReportStatusMojo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.