Summary: | FTP task scandir method bug | ||
---|---|---|---|
Product: | Ant | Reporter: | Edouard Mercier <emercier> |
Component: | Optional Tasks | Assignee: | Ant Notifications List <notifications> |
Status: | CLOSED INVALID | ||
Severity: | normal | CC: | doug, emercier, notifications |
Priority: | P3 | Keywords: | PatchAvailable |
Version: | 1.4.1 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | The FTP.java source correcting the bug |
Description
Edouard Mercier
2001-10-25 00:26:50 UTC
Any chance you could provide the patch as an attachement using "cvs diff -u" or similar? Created attachment 778 [details]
The FTP.java source correcting the bug
What else should I say? Yes, I have also developed an additional feature for this FTP task, which enables to create a Java property file listing all the remotely listed files on the server, instead of the default file when "listing" action is asked for. I think this feature is really useful. Edouard, as Stefan says, the fact that you post the whole file or a simple snippet makes it difficult to see what are the real changes you did. As we don't even know what is your reference source, it makes it even more difficult to do a diff. Plus in the whole file you added a loop to print out statements in french that you commented. statements are commented but the loop remains. If you don't know how to deal with cvs, please identify *clearly* the lines you changed. As far as I can see the changes are related to the case "if (file.isDirectory())" where you moved up the vpath + file.getName() and you added a if (fast && couldHoldIncluded(name)) { scandir(file.getName(), name+File.separator, fast); } you did a change in listFiles as well. Please confirm this ASAP with the motivation. I don't think that a bug in an optional task should be a blocker, much less if the original reporter has lost interest in it. Hello to all; I did not lose interest to that bug! What do you expect me to do in order to fix that bug? By the way, I remind you that this is an actual bug at the beginning, even if I eventually talk about a possible extension of the ftp task... Why did I not send just the CVS difference with the current org.apache.tools.ant.taskdefs.optional.net.FTP class? Because, I currently do not benefit from a connection to the CVS server, for I am behind a fierce firewall. But, as you can see, I also sent an attachment which the complete class. I am pretty interested in any Ant further development. Besides, I have developed a task that integrates Jindent. I am currently developing a task that generates AntDoc for an Ant script. I do not think I am lazy, so just tell me what to do in order to close that bug, and I will do my best ! Best regards, Edouard I am glad you haven't lost interest, it just looked that way as you didn't respond to Stephane's question. You can easily download the latest CVS version from the webcvs frontend, patch it so it does what you want and create a plain "diff -u". The problem with submitting the whole file is, that the change itself is rather difficult to track. I've just diffed your file (ignoring whitespace changes) against the latest CVS version and have found some changes that don't seem to be related to what you want at all - so please help me understanding your changes. The format of the listFile method is the way (some) people want it, so if you want a different format, you should make that a new option. If I understand your patch correctly, FTP right now will not look at the directory part of a file name when matching includes/excludes, which you now enable. Correct? You also add a new conditional scandir call inside the part that handles excluded directories. I think you are correct and have committed a change to that effect - could you please see whether nightly build 2002-04-16 works as expected? OK, after a close look at the org.apache.tools.ant.taskdefs.optional.net.FTP class, I come tot the conclusion that there is no more bug concerning the scandir method. The bug has been fixed meanwhile by someone who forgot to close that bug #4411. Sorry for the disturbance. Thank you for your work. Stephane, my error was to have forgotten to remove my specific listing format, so do not take this into account. Edouard I was the one who fixed the bug just yesterday 8-) I didn't close the report because I wanted you to verify I had fixed it. Thanks. *** Bug 8434 has been marked as a duplicate of this bug. *** |