org.dbmaintain.maven.plugin
Class MarkDatabaseAsUpToDateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.dbmaintain.maven.plugin.BaseMojo
          extended by org.dbmaintain.maven.plugin.BaseDatabaseMojo
              extended by org.dbmaintain.maven.plugin.MarkDatabaseAsUpToDateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class MarkDatabaseAsUpToDateMojo
extends BaseDatabaseMojo

This operation updates the state of the database to indicate that all scripts have been executed, without actually executing them. This can be useful when you want to start using DbMaintain on an existing database, or after having fixed a problem directly on the database.

Author:
Tim Ducheyne, tiwe

Field Summary
protected  List<ScriptArchiveDependency> scriptArchiveDependencies
          Defines where the scripts can be found that must be registered in the database.
protected  String scriptLocations
          Defines where the scripts can be found that must be registered in the database.
 
Fields inherited from class org.dbmaintain.maven.plugin.BaseDatabaseMojo
databases
 
Fields inherited from class org.dbmaintain.maven.plugin.BaseMojo
artifactFactory, configFile, localRepository, mavenProjectHelper, project, remoteRepositories, resolver
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MarkDatabaseAsUpToDateMojo()
           
 
Method Summary
protected  DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)
           
 
Methods inherited from class org.dbmaintain.maven.plugin.BaseDatabaseMojo
createDbMaintainTask, getAllScriptLocations, getDbMaintainDatabases
 
Methods inherited from class org.dbmaintain.maven.plugin.BaseMojo
execute, getMavenProperties, performAfterTaskActions
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptArchiveDependencies

protected List<ScriptArchiveDependency> scriptArchiveDependencies
Defines where the scripts can be found that must be registered in the database. Multiple dependencies may be configured. At least one scriptArchiveDependency or scriptLocation (can be both) must be defined.


scriptLocations

protected String scriptLocations
Defines where the scripts can be found that must be registered in the database. Multiple locations may be configured, separated by comma's. A script location can be a folder or a jar file. At least one scriptArchiveDependency or scriptLocation (can be both) must be defined.

Constructor Detail

MarkDatabaseAsUpToDateMojo

public MarkDatabaseAsUpToDateMojo()
Method Detail

createDbMaintainTask

protected DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)
Specified by:
createDbMaintainTask in class BaseDatabaseMojo


Copyright © 2011. All Rights Reserved.