Class EtlTaskBase

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
scriptella.tools.ant.EtlTaskBase
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
EtlExecuteTask, EtlTemplateTask

public class EtlTaskBase extends org.apache.tools.ant.Task
Base class for Scriptella ETL Ant tasks.
Version:
1.0
Author:
Fyodor Kupolov
  • Field Summary

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,?>
    Returns a map of properties to pass into Scriptella.
    boolean
     
    boolean
    Getter for inheritAll property.
    boolean
     
    protected void
    Resets JUL back to the original state.
    void
    setDebug(boolean debug)
     
    void
    setInheritAll(boolean inheritAll)
    Setter for inheritAll property.
    void
    setQuiet(boolean quiet)
     
    protected void
    Configures Scriptella JUL loggers to use Ant logging.

    Methods inherited from class org.apache.tools.ant.Task

    bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EtlTaskBase

      public EtlTaskBase()
  • Method Details

    • setInheritAll

      public void setInheritAll(boolean inheritAll)
      Setter for inheritAll property.
      Parameters:
      inheritAll - if true pass all project properties to Scriptella. Default value if true.
    • isInheritAll

      public boolean isInheritAll()
      Getter for inheritAll property.
      Returns:
      true if pass all project properties to Scriptella. Default value if true.
    • isDebug

      public boolean isDebug()
    • setDebug

      public void setDebug(boolean debug)
    • isQuiet

      public boolean isQuiet()
    • setQuiet

      public void setQuiet(boolean quiet)
    • getProperties

      protected Map<String,?> getProperties()
      Returns a map of properties to pass into Scriptella.

      If inheritAll property is true (the default), the set of project properties is returned, otherwise only system properties are passed.

      Returns:
      map of properties (name->value).
    • setupLogging

      protected void setupLogging()
      Configures Scriptella JUL loggers to use Ant logging.
    • resetLogging

      protected void resetLogging()
      Resets JUL back to the original state.