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 34241] New: - tar task fails when fileset contains large file (>=2GB)
Date Wed, 30 Mar 2005 16:07: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=34241>.
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=34241

           Summary: tar task fails when fileset contains large file (>=2GB)
           Product: Ant
           Version: 1.6.2
          Platform: HP
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jaysantusersub@mac.com


The following XML in build.xml, produces the error at the end of this
description.   A file that is 2.5GB large is in the path that the tar is working
on.  If an <exclude> element is created for the specific file, and all the rest
of the files are <2GB, the tar succeeds.  Ant 1.6.2 executing on RHAS 2.1 on HP
intel hardware (DL380).   Also, gnutar successfully builds this tar file. Trying
to build an exec command to execute the guntar but the syntax escapes me. 

  <target name="packvar"
          description="tar and gzip the var directory for install into other
phases">

    <echo message="Beginning packvar..."/>

    <echo message="Removing Existing tar File"/>
    <delete file="${rds.tars}/rdsvar.tar.gz"/>

    <echo message="Creating New tar File"/>
    <tar destfile="${rds.tars}/rdsvar.tar.gz"
         compression="gzip"
	 longfile="gnu">

      <tarfileset dir="${rds.var}">
	<exclude name="**/.*"/>
	<include name="**"/>
      </tarfileset>
    </tar>

[...]$ ant packvar
Buildfile: build.xml

packvar:
     [echo] Beginning packvar...
     [echo] Removing Existing tar File
   [delete] Deleting: /.../tars/rdsvar.tar.gz
     [echo] Creating New tar File
      [tar] Building tar: /.../tars/rdsvar.tar.gz

BUILD FAILED
/.../build.xml:157: Problem creating TAR: request to write '0' bytes exceeds
size in header of '-1582609869' bytes

Total time: 1 second

-- 
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