ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <SCo...@sportvision.com>
Subject RE: bug fixes!! WAS: ant 1.6beta3 released
Date Tue, 09 Dec 2003 16:00:12 GMT
Yes, I wrote the changes to commons-net several months ago.
NetComponents only had support for unix ftp systems, with some
documentation
about how to "roll your own" i.e. write your own implementations of
their interface.  Not very suitable for ant.  

One developer wrote some simple parsers and I enhanced these.  You can
find the different parsers in the package
org.apache.commons.net.ftp.parser.  However, be careful with the
documentation, especially the documentation under the class
org.apache.commons.net.ftp.parser.NTFTPEntryParser.  The "usage" section
there seems to be a bit out of date. 

There is more up to date documentation in the javadoc comment in the
file org.apache.commons.net.ftp.FTPClient.java, under the method
createFileList(FTPFileEntryParser parser).  For some reason I do not
understand, this usage information did not make it into the javadoc that
is actually displayed on the commons-net javadoc site.

Basically, as I see it, the ant task would be rewritten to allow
specification of the system types.  It would decode this attribute to
allow a FTPFileEntryParser object to be instantiated, and then use that
object as described in this documentation.  

Frankly, it would be a wonderful thing if the ant-user community found
other types of FTP systems not supported or incorrectly supported in
commons-net and then commons-net could be updated with even better
support.

I would be happy to volunteer for this task myself, except that at the
moment I am about to be unemployed and may or may not have a job right
away.  If I do not, this might be a good way to spend my time in between
interviews and pounding the pavement looking for work.  If I get a new
job soon, I may not have time.  But at least I have moved my
subscription to this list away from my work email address and will be
able to follow the discussions from home.

-----Original Message-----
From: Antoine Levy-Lambert [mailto:antoine@antbuild.com] 
Sent: Tuesday, December 09, 2003 9:21 AM
To: Ant Developers List
Subject: AW: bug fixes!! WAS: ant 1.6beta3 released


Hi Steve,

can you explain what needs to be done to take advantage of what
commons-net is doing ?

do we not get it automatically ?

BTW I have tested the ftp task in ant1.6 against 3 sorts of ftp servers
(GNU Inetutils, Hummingbird, FreeBSD). Not against a Microsoft ftp
server.

Cheers,

Antoine

-----Ursprungliche Nachricht-----
Von: Steve Cohen [mailto:SCohen@sportvision.com]
Gesendet: Dienstag, 9. Dezember 2003 16:14
An: Ant Developers List
Betreff: RE: bug fixes!! WAS: ant 1.6beta3 released


There are improvements to commons-net over the old NetComponents to
handle Windows FTP servers.  However, the ant tasks would need to be
recoded to take advantage of these.

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Tuesday, December 09, 2003 1:48 AM
To: dev@ant.apache.org
Subject: Re: bug fixes!! WAS: ant 1.6beta3 released


On Mon, 8 Dec 2003, Filip Hanik <devlists@hanik.com> wrote:

<snip>

> 3. FTP - I have a file parser for Windows FTP servers, modified the 
> FTP task to take a parameter for which OS the FTP server is. Even 
> better would be if it could auto detect.

I'm not sure, maybe commons-net can already do that?  I'd prefer to see
fixes in that area to go upstreams so that all customers of commons-net
can take advantage of them.

<snip>



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



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


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


Mime
View raw message