scriptella.tools.ant
Class EtlTaskBase

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by scriptella.tools.ant.EtlTaskBase
All Implemented Interfaces:
java.lang.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
EtlTaskBase()
           
 
Method Summary
protected  java.util.Map<java.lang.String,?> getProperties()
          Returns a map of properties to pass into Scriptella.
 boolean isDebug()
           
 boolean isInheritAll()
          Getter for inheritAll property.
 boolean isQuiet()
           
protected  void resetLogging()
          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 setupLogging()
          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 Detail

EtlTaskBase

public EtlTaskBase()
Method Detail

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 java.util.Map<java.lang.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.



Copyright © Copyright 2006-2009 The Scriptella Project Team.