ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Mesturini <jo_4_...@yahoo.it>
Subject FTP get from Win32 server
Date Fri, 03 Mar 2006 11:42:01 GMT
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


Mime
View raw message