DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29650>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29650 FTP with Ant ------- Additional Comments From [EMAIL PROTECTED] 2004-06-19 01:22 ------- Well, I am glad to hear that our commons-net fix fixed most of your issues. The problem now seems to be a different issue altogether. From your stack trace, it seems that the bug now belongs in Ant's court. Here is the line of code that is throwing the exception. FTPFile ftpfile = ftp.listFiles(resolveFile(filename))[0]; It's definitely wrong, because listFiles can certainly return a 0-length array. However, from a quick glance at the resloveFile() method, it doesn't look to me as if "**/*" is supported notion for this method. FTPClient has no recursive mode. So I would say, you should redirect this bug to Ant for the assumption that the returned array will have at least one member. But also, I don't think your way of invoking the task with **/* is supported. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
