com.agimatec.dbmigrate.groovy
Class GroovyScriptTool

java.lang.Object
  extended by com.agimatec.dbmigrate.groovy.GroovyScriptTool
All Implemented Interfaces:
MigrationToolAware

public class GroovyScriptTool
extends java.lang.Object
implements MigrationToolAware

Description: invoke a groovy script with the migration tool
User: roman.stumm
Date: 13.11.2007
Time: 16:09:13
Copyright: Agimatec GmbH


Constructor Summary
GroovyScriptTool(java.lang.String rootDir)
           
GroovyScriptTool(java.lang.String[] rootDirs)
           
 
Method Summary
 groovy.lang.Binding getBinding()
           
 groovy.util.GroovyScriptEngine getScriptEngine()
           
 void setMigrationTool(MigrationTool tool)
           
 void start(java.lang.String groovyScript)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyScriptTool

public GroovyScriptTool(java.lang.String rootDir)
                 throws java.io.IOException
Throws:
java.io.IOException

GroovyScriptTool

public GroovyScriptTool(java.lang.String[] rootDirs)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

start

public void start(java.lang.String groovyScript)
           throws groovy.util.ScriptException,
                  groovy.util.ResourceException
Throws:
groovy.util.ScriptException
groovy.util.ResourceException

setMigrationTool

public void setMigrationTool(MigrationTool tool)
Specified by:
setMigrationTool in interface MigrationToolAware

getBinding

public groovy.lang.Binding getBinding()

getScriptEngine

public groovy.util.GroovyScriptEngine getScriptEngine()


Copyright © 2008-2012. All Rights Reserved.