DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10755>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10755 Ant 1.5's jar task fails to add new files when run multiple times ------- Additional Comments From [EMAIL PROTECTED] 2002-10-23 09:20 ------- To address the issue that a .zip or .jar cannot be updated depending on an existing or outdated entry in the archive, I've started digging into the Mergers and Scanners that decide about this magic, and have added a few lines to SourceFileScanner.java that make it actually look into the archive, which as far as I can see noone did before. Since the documentation says that "New files are added; old files are replaced with the new versions.", I believe that this is the correct (and most useful) behaviour. The code may not be the most beautiful piece in the world, but it solves the problem perfectly, at least for zips and jars. I have not tested it for tars. I hope that the attached cvs diff can be used to fix this issue generally. -- best regards, Peter Holzwarth mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
