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

com.opitzconsulting.orcas.maven.OrcasUpdateStatics Maven / Gradle / Ivy

There is a newer version: 7.7.1
Show newest version
package com.opitzconsulting.orcas.maven;

import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import de.opitzconsulting.orcas.diff.OrcasMain;
import de.opitzconsulting.orcas.diff.ParametersCall;

/**
 * This is the main mojo to update the database-schema according to the orcas-script files.
 */
@Mojo( name = "updateStatics" )
public class OrcasUpdateStatics extends BaseOrcasMojo
{
  /**
   * The logname for spooling.
   */
  @Parameter( defaultValue = "update-statics" )
  private String logname;


  @Override
  protected String getLogname()
  {
    return logname;
  }

  @Override
  protected void executeWithParameters( ParametersCall pParameters )
  {
    if( staticsfolder.exists() )
    {
      pParameters.setModelFile( staticsfolder.toString() );
      pParameters.setSqlplustable( false );
      pParameters.setOrderColumnsByName( false );

      new OrcasMain().mainRun( pParameters );
    }
    else
    {
      getLog().info( "no statics found" );
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy