commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clark Archer <carc...@drillinginfo.com>
Subject Re: Ant1.6 - FTP task with MS FTP
Date Fri, 06 Feb 2004 22:56:07 GMT
ALL> Elischer, Matt (M.) wrote:

>>Hi all,
>>
>>I'm trying to retrieve a file from a MS FTP server with Ant1.6.0.  I'm using JDK1.3.1
and commons-net-1.1.0.jar.  My target is as follows:
>>
>>       <target name="retrieve_content" description="retrieves content from FTP
box">
>>               <ftp action="get" server="${ftp_server}" userid="${ftp_username}"
password="${ftp_password}" remotedir="${ftp_remotedir}">
>>                       <fileset dir="${content.download.dir}">
>>                               <include name="test.zip"/>
>>                       </fileset>
>>               </ftp>
>>       </target>

Matt,

did you set your MS FTP server to return UN*X-style
directory listings?  On one of the property pages for the
FTP site, you have to change from the default Windows-style
before <ftp> will work correctly.

-Clark


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message