org.apache.ibatis.abator.ant
Class AbatorAntTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.ibatis.abator.ant.AbatorAntTask

public class AbatorAntTask
extends org.apache.tools.ant.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=".">
   <target name="genfiles" description="Generate the files">
     <taskdef name="abator.genfiles" 
              classname="org.apache.ibatis.abator.ant.AbatorAntTask" 
              classpath="abatorxxx.jar" />
     <abator.genfiles overwrite="true" configfile="abatorConfig.xml" />
   </target>
 </project>
 

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
AbatorAntTask()
           
 
Method Summary
 void execute()
           
 java.lang.String getConfigfile()
           
 boolean isOverwrite()
           
 void setConfigfile(java.lang.String configfile)
           
 void setOverwrite(boolean overwrite)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
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 org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.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.