All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.liquibase.maven.plugins.LiquibaseDeactivateChangeLogMojo Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package org.liquibase.maven.plugins;

import liquibase.Liquibase;
import liquibase.command.CommandScope;
import liquibase.command.core.DeactivateChangelogCommandStep;
import liquibase.database.Database;
import liquibase.exception.LiquibaseException;

/**
 *
 * 

Deactivates a change log from Hub.

* * @author Wesley Willard * @goal deactivateChangeLog * */ public class LiquibaseDeactivateChangeLogMojo extends AbstractLiquibaseChangeLogMojo { @Override protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException { super.performLiquibaseTask(liquibase); Database database = liquibase.getDatabase(); CommandScope liquibaseCommand = new CommandScope("deactivateChangeLog"); liquibaseCommand .addArgumentValue(DeactivateChangelogCommandStep.CHANGELOG_FILE_ARG, changeLogFile); liquibaseCommand.execute(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy