Package org.liquibase.maven.plugins

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

package org.liquibase.maven.plugins;

import liquibase.Contexts;
import liquibase.LabelExpression;
import liquibase.Liquibase;
import liquibase.exception.LiquibaseException;

/**
* Marks all unapplied changes to the database as applied in the change log.
*
* @author JAmes Atwill
* @goal changelogSync
*/
public class LiquibaseChangeLogSyncMojo extends AbstractLiquibaseChangeLogMojo {

  @Override
  protected void performLiquibaseTask(Liquibase liquibase)
      throws LiquibaseException {
    liquibase.changeLogSync(new Contexts(contexts), new LabelExpression(labels));
  }

}
TOP

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

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.