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 41596] New: - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit
Date Mon, 12 Feb 2007 18:30:59 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=41596>.
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=41596

           Summary: ant 1.7 tar and bzip2 tasks corrupted output file when
                    size exceeds certain limit
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: levanttran@yahoo.com


Description:

    Ant tar task with bzip2 compression option or ant bzip2 task generates
    corrupted output for filesize of roughly 170+MB (before compression).

    This problem occurs with ant version 1.7 installed in 12/06.
    Tested on linux with both jdk 1.5 and jdk 1.6

Work around: replace <tar compress=bzip2..> or <bzip2 ..>
         with 2 steps: <tar ..> and <exec ...bzip2>

For example,

 Replace this:
    <bzip2 src="${out.file}.dmp.tar"
        destfile="${out.file}.dmp.tar.bz2">
      <tarfileset dir="${dumps.dir}">
        <include name="${dist.schema}.dmp"/>
      </tarfileset>
    </bzip2>
 Or this:
    <tar destfile="${out.file}.dmp.tar"
        compression="bzip2">
      <tarfileset dir="${dumps.dir}">
        <include name="${dist.schema}.dmp"/>
      </tarfileset>
    </tar>


 With:

    <tar destfile="${out.file}.dmp.tar">
      <tarfileset dir="${dumps.dir}">
        <include name="${dist.schema}.dmp"/>
      </tarfileset>
    </tar>

    <exec dir="${dumps.dir}"
        executable="bzip2">
        <arg value="${out.file}.dmp.tar"/>
    </exec>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message