srk
srk

Reputation: 5126

Cannot Get Files From FTP using ANT

I am trying to get files from FTP, it always says no files retrieved, here goes my code

<target name="ftp">

        <ftp action="get"
                     server="${myftpserver}"
                     userid="${username}"
                     password="${password}"
                     remotedir="a"
                     binary="no"
                     verbose="yes"
                     passive="yes">
                     <fileset dir="abc" includes="CatalogReferenceAttribute.java"/>
               </ftp>
        </target>

Here i am trying to retrieve a .java file from FTP folder

a

to my local folder

abc

below is my ouput enter image description here

Where i was wrong?

Upvotes: 1

Views: 1152

Answers (1)

Dante WWWW
Dante WWWW

Reputation: 2739

Did you put the dependency libraries into ANT's lib directory?
common-net.jar may not be enough... check this page:
http://ant.apache.org/manual/install.html#librarydependencies

Upvotes: 2

Related Questions