You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/05/05 04:27:35 UTC
DO NOT REPLY [Bug 28776] New: -
tar task produces incorrect tar files
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: dev@ant.apache.org
ReportedBy: oliver@rossmueller.com
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org