Package scriptella.tools.ant
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, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of properties to pass into Scriptella.booleanisDebug()booleanGetter for inheritAll property.booleanisQuiet()protected voidResets JUL back to the original state.voidsetDebug(boolean debug) voidsetInheritAll(boolean inheritAll) Setter for inheritAll property.voidsetQuiet(boolean quiet) protected voidConfigures 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
EtlTaskBase
public EtlTaskBase()
-
-
Method Details
-
setInheritAll
public void setInheritAll(boolean inheritAll) Setter for inheritAll property.- Parameters:
inheritAll- iftruepass all project properties to Scriptella. Default value iftrue.
-
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
Returns a map of properties to pass into Scriptella.If
inheritAllproperty 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.
-