ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10755] - Ant 1.5's jar task fails to add new files when run multiple times
Date Wed, 23 Oct 2002 09:20:09 GMT
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 peter.holzwarth@io-software.com  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:peter.holzwarth@io-software.com

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


Mime
View raw message