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 28776] New: - tar task produces incorrect tar files
Date Wed, 05 May 2004 02:27:35 GMT
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


Mime
View raw message