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=28776>. 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=28776 tar task produces incorrect tar files Summary: tar task produces incorrect tar files Product: Ant Version: 1.6.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When extracting tar files created with Ant's tar task, tar logs a warning like 'tar: A lone zero block at *'. While all the file contents is extracted correctly this message causes confusion for lots of users. The reason for the message is that tar expects TWO empty records marking the end of the archive but Ant is writing only ONE. To fix this, method TarOutputStream.finish() should look like public void finish() throws IOException { this.writeEOFRecord(); this.writeEOFRecord(); // TWO empty records required } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]