org.shiftone.jrat.inject.ant
Class AbstractFileTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.shiftone.jrat.inject.ant.AbstractFileTask
Direct Known Subclasses:
InjectTask

public abstract class AbstractFileTask
extends org.apache.tools.ant.Task

Author:
jeff@shiftone.org (Jeff Drost)

Field Summary
protected  java.io.File file
           
protected  java.util.Vector filesets
           
 
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
AbstractFileTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          called by Ant
 void execute()
          called by Ant
protected abstract  void processFile(java.io.File file)
           
 void setFile(java.io.File file)
          called by Ant
protected abstract  void validateFile(java.io.File file)
           
 
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
 

Field Detail

filesets

protected java.util.Vector filesets

file

protected java.io.File file
Constructor Detail

AbstractFileTask

public AbstractFileTask()
Method Detail

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
called by Ant


setFile

public void setFile(java.io.File file)
called by Ant


validateFile

protected abstract void validateFile(java.io.File file)
                              throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

processFile

protected abstract void processFile(java.io.File file)
                             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
called by Ant

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException