Tags

To use the ftp task with ant you would need to download the commons libraries from http://ant.apache.org/manual/install.html#commons-net

Download the binary zip, extract and copy the commons-net-2.0.jar and commons-net-ftp-2.0.jar files under your ANT_HOME/lib

and then you can have target like the following

<target name=”updateLocal”>
<ftp action=”get”
server=”10.35.25.65″
userid=”btooka”
password=”somegum”
remotedir=”/blu/app/whatever/product/blah”>

<fileset dir=”localfolder”>
<include name=”*.*”/>
</fileset>
</ftp>

Advertisements