Class FileConverterTask


  • public class FileConverterTask
    extends ConverterTask
    Initiates retrieval and conversion of data from a source file.
    Author:
    Andrew Varley, Mark Woodbridge, Richard Smith, Matthew Wakeling, Thomas Riley
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String clsName  
      protected org.apache.tools.ant.types.FileSet fileSet  
      protected static org.apache.log4j.Logger LOG  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFileSet​(org.apache.tools.ant.types.FileSet fileSet)
      Set the data fileset
      void execute()
      Run the task
      void setClsName​(java.lang.String clsName)
      Set the source specific subclass of FileConverter to run
      • 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

      • LOG

        protected static final org.apache.log4j.Logger LOG
      • fileSet

        protected org.apache.tools.ant.types.FileSet fileSet
      • clsName

        protected java.lang.String clsName
    • Constructor Detail

      • FileConverterTask

        public FileConverterTask()
    • Method Detail

      • setClsName

        public void setClsName​(java.lang.String clsName)
        Set the source specific subclass of FileConverter to run
        Parameters:
        clsName - name of converter class to run
      • addFileSet

        public void addFileSet​(org.apache.tools.ant.types.FileSet fileSet)
        Set the data fileset
        Parameters:
        fileSet - the fileset
      • execute

        public void execute()
        Run the task
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException - if a problem occurs