Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用ANT从FTP获取文件_Ant_Ftp - Fatal编程技术网

无法使用ANT从FTP获取文件

无法使用ANT从FTP获取文件,ant,ftp,Ant,Ftp,我试图从FTP获取文件,它总是说没有检索到文件, 这是我的密码 <target name="ftp"> <ftp action="get" server="${myftpserver}" userid="${username}" password="${password}" remotedir=

我试图从FTP获取文件,它总是说没有检索到文件, 这是我的密码

<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>
这里我试图从FTP文件夹中检索一个.java文件

a

到我的本地文件夹

abc

下面是我的输出


我哪里错了

您是否已将依赖项库放入ANT的lib目录中? common-net.jar可能还不够。。。查看此页:

很高兴看到这一点。当输出中显示无法加载某个内容时,您总是可以在输出中找到线索—只需检查是否存在这样的内容。