ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: FTP get from Win32 server
Date Fri, 03 Mar 2006 19:21:00 GMT
As an alternative to using FTP, consider installing cygwin ssh server on
the remote windows machine and using the <scp> task to get the files. I
know this does not address your question, but I believe it is a better
solution.

-Rob Anderson

> -----Original Message-----
> From: Giovanni Mesturini [mailto:jo_4_ant@yahoo.it] 
> Sent: Friday, March 03, 2006 3:42 AM
> To: user@ant.apache.org
> Subject: FTP get from Win32 server
> 
> Hi community,
> 
> I have to get files from a Windows XP FTP server.
> Before using Ant I've tried from command line to verify that 
> the FTP server I use (Golden-FTP) works, and it does.
> 
> This is my ant script:
> 
> <ftp action="get"
> 	server="${ftp-address}"
> 	userid="${ftp-username}"
> 	password="${ftp-password}"
> 	remotedir="/repository/libs/jars">
> 	<fileset dir="${maven-temp-dest}">
> 		<include name="**/*.jar"/>
> 	</fileset>
> </ftp>
> 
> I've tried with standard Ant 1.6.5 and it gave me and error 
> about no class def found for FTPClient. Then I followed 
> suggestions from a forum where someone told me to add 
> commons-net-1.2.2 and jakarta-oro-2.0.8 to my ant lib in 
> order to solve the problem. That was true, problem solved, 
> but another one grown up:
> 
> BUILD FAILED
> D:\DEV_IOLI2\build.xml:35:
> org.apache.commons.net.ftp.parser.ParserInitializationException:
> Unknown parser type: WIN32
> 
> So I'd search something and I found a russian forum (written 
> in cirillic...) where there was the following english FAQ:
> 
> Q: On which server operating systems is FTPClient able to 
> bring back a parsed listing? 
> 
> A: Currently parsers have been written for UNIX, NT,
> OS/2 and VMS and OS400. These can be autodetected by the code 
> without being specified. Additionally, the code correctly 
> handles cases where NT or OS400 servers have been configured 
> to look like unix servers. There is also a means of 
> specifying a user-written parser by class name. All of these 
> parsers return FTPFile objects with as much information about 
> the file as can be gathered from the listing. 
> 
> If none of these is sufficient, FTPClient.listNames() may 
> always be called. This retrieves just the file name without 
> other information.
> 
> (from
> http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions)
> 
> Now, does someone did some successful attemp in downloading 
> files from a Windows XP (or Win32) server using ant ftp task?...
> 
> Thanks very much
> Jo
> 
> 
> 
> 	
> 
> 	
> 		
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
> http://mail.yahoo.it
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message