com.opitzconsulting.orcas.maven.ExecuteOrcasScripts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orcas-maven-plugin Show documentation
Show all versions of orcas-maven-plugin Show documentation
orcas maven plugin for orcas usage with maven
package com.opitzconsulting.orcas.maven;
import java.io.File;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import de.opitzconsulting.orcas.diff.OrcasScriptRunner;
import de.opitzconsulting.orcas.diff.ParametersCall;
/**
* Execute sql-scripts.
*/
@Mojo( name = "ExecuteScripts" )
public class ExecuteOrcasScripts extends BaseOrcasMojo
{
/**
* The folder that contains the scripts to be exceutd.
*/
@Parameter
private File scriptfolder;
/**
* The logname for spooling.
*/
@Parameter
private String logname;
@Override
protected String getLogname()
{
return logname;
}
@Override
protected void executeWithParameters( ParametersCall pParameters )
{
pParameters.setModelFile( scriptfolder.toString() );
pParameters.setIsOneTimeScriptMode( false );
pParameters.setAdditionalParameters( null );
new OrcasScriptRunner().mainRun( pParameters );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy