Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to Call an ANT script from a Kettle Job or transformation ?

$
0
0
I am looking for a way to call an ANT Script from a Kettle job or transformation.
For reference, please find below the ANT script. I am passing in two parameters in bold. I am looking for a way to call this script passing in two dynamic parameters.

<?xml version="1.0" encoding="UTF-8"?>
<project name="Kettle" default="Write_header">
<property name="newline" value="${line.separator}" />
<target name="Write_header" description="Writes a header to the top of the file ">
<antcall target="init" />
</target>

<target name="init" >
<copy file="${outputFilename}" tofile="${tempFilename}" overwrite="true"/>
<delete file="${outputFilename}"/>
<tstamp>
<format property="CURRENT_DATE" pattern="dd-MM-yyyy hh:mm:ss aa" locale="en,US"/>
</tstamp>
<echo message="Start Date:${CURRENT_DATE}" file="${outputFilename}" append="false"/>
<echo message="${newline}" file="${outputFilename}" append="true" />
<touch file="${outputFilename}"/>
<concat destfile="${outputFilename}" append="true">
<filelist files="${tempFilename}"/>
</concat>
</target>
</project>

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>