Skip navigation links

Package scriptella.tools.ant

Ant tasks.

See: Description

Package scriptella.tools.ant Description

Ant tasks.

How to register

To use Scriptella tasks in a build file, the following taskdef declaration should be added:

    <taskdef resource="antscriptella.properties" classpath="scriptella.jar"/>
Note: Additional libraries required for ETL execution may also be appended to classpath:

    <taskdef resource="antscriptella.properties" classpath="scriptella.jar;hsqldb.jar"/>

EtlExecuteTask (etl)

Parameters

AttributeDescriptionRequired
fileThe script file to execute.

The .etl.xml file extension part may be ommited.

Yes, unless a nested <fileset> element is used.
inheritAllIf true, pass all properties to ETL executor. Defaults to true.No
debugIf true print debugging information.No, default value is false.
nostatIf true turns off statistics collecting.No, default value is false.
quietIf true be extra quiet.No, default value is false.
The following attributes are not supported yet
forkif enabled triggers the class execution in another VM (disabled by default)No
maxmemoryMax amount of memory to allocate to the forked VM (ignored if fork is disabled) No

Nested Elements

The task supports nested <fileset> element.

Examples

Executes etl.xml file in the current directory:
<etl/>
Executes name.etl.xml file in the current directory:
<etl file="name" />
<!--Or explicitly specifying the full name-->
<etl file="name.etl.xml" />
Executes all .etl.xml files in db directory:
<etl>
    <fileset dir="db" includes="*.etl.xml" />
</etl>

EtlTemplateTask (etl-template)

Parameters

AttributeDescriptionRequired
nameETL template name.No, default ETL template is generated.
inheritAllIf true, pass all properties to Scriptella. Defaults to true.No
debugIf true print debugging information.No, default value is false.
quietIf true be extra quiet.No, default value is false.

Nested Elements

The task has no nested elements.

Supported Templates

Examples

Produce default ETL template
<etl-template/>
Produce data migration template:

    <property file="etl.properties"/>
    <!--
    Ant properties
        driver,class,user,password
    must be set before calling "DataMigrator" etl-template 
    -->
    <etl-template name="DataMigrator"/>
Skip navigation links

Copyright © Copyright 2006-2019 The Scriptella Project Team.