开发者

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&开发者_如何学编程gt;
        </target>

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

a

to my local folder

abc

below is my ouput

Cannot Get Files From FTP using ANT

Where i was wrong?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜