org.apache.ibatis.abator.ant
Class AbatorAntTask

java.lang.Object
  extended by Task
      extended by org.apache.ibatis.abator.ant.AbatorAntTask

public class AbatorAntTask
extends Task

This is an Ant task that will run Abator. The following is a sample Ant script that shows how to run Abator from Ant:

  <project default="genfiles" basedir=".">
    <property name="generated.source.dir" value="${basedir}" />
    <target name="genfiles" description="Generate the files">
      <taskdef name="abator"
               classname="org.apache.ibatis.abator.ant.AbatorAntTask"
               classpath="abator.jar" />
      <abator overwrite="true" configfile="abatorConfig.xml" verbose="false" >
        <propertyset>
          <propertyref name="generated.source.dir"/>
        </propertyset>
      </abator>
    </target>
  </project>
 

Author:
Jeff Butler

Constructor Summary
AbatorAntTask()
           
 
Method Summary
 PropertySet createPropertyset()
           
 void execute()
           
 java.lang.String getConfigfile()
           
 boolean isOverwrite()
           
 boolean isVerbose()
           
 void setConfigfile(java.lang.String configfile)
           
 void setOverwrite(boolean overwrite)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbatorAntTask

public AbatorAntTask()
Method Detail

execute

public void execute()
             throws BuildException
Throws:
BuildException

getConfigfile

public java.lang.String getConfigfile()
Returns:
Returns the configfile.

setConfigfile

public void setConfigfile(java.lang.String configfile)
Parameters:
configfile - The configfile to set.

isOverwrite

public boolean isOverwrite()
Returns:
Returns the overwrite.

setOverwrite

public void setOverwrite(boolean overwrite)
Parameters:
overwrite - The overwrite to set.

createPropertyset

public PropertySet createPropertyset()

isVerbose

public boolean isVerbose()

setVerbose

public void setVerbose(boolean verbose)