You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Lin Sun <li...@gmail.com> on 2011/01/07 21:32:01 UTC

Untar task in Ant

Hi

I 'd like to use untar task in ant, looks very cool and mature!  :)
In reading through the user doc, I don't see much restrictions
limited.  I'd like to know if it supports any of the following -

1) unlimited tar size and tar entry size
2) support the full POSIX tar standard or more modern GNU extension of
said standard
3) able to preserve file permissions after untar (I tried this and
this doesn't seem to work... always uses the default values for files
and directories)

Thanks so much!

Lin

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


RE: Untar task in Ant

Posted by Shawn Castrianni <Sh...@halliburton.com>.
I was not able to get anything built into ANT to work either in terms of preserving file permissions.  I had to resort to using exec task and running a real tar command.  I chose bsdtar as I could get a version compiled for all of my supported platforms.  I then choose the appropriate bsdtar exe to run based on my platform.

---
Shawn Castrianni


-----Original Message-----
From: Lin Sun [mailto:linsun.unc@gmail.com] 
Sent: Friday, January 07, 2011 2:32 PM
To: user@ant.apache.org
Subject: Untar task in Ant

Hi

I 'd like to use untar task in ant, looks very cool and mature!  :)
In reading through the user doc, I don't see much restrictions
limited.  I'd like to know if it supports any of the following -

1) unlimited tar size and tar entry size
2) support the full POSIX tar standard or more modern GNU extension of
said standard
3) able to preserve file permissions after untar (I tried this and
this doesn't seem to work... always uses the default values for files
and directories)

Thanks so much!

Lin

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

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

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


Re: Untar task in Ant

Posted by Lin Sun <li...@gmail.com>.
Hi Stefan

Thanks for your kind reply on both list.  I have been testing the Ant
Untar task and it works reasonably well.  In my test I used a tgz that
is 13 GB and 2 entries are around 6 GB.

Thanks again

Lin

On Sat, Jan 8, 2011 at 2:50 PM, Stefan Bodewig <bo...@apache.org> wrote:
> On 2011-01-07, Lin Sun wrote:
>
>> I 'd like to use untar task in ant, looks very cool and mature!  :)
>> In reading through the user doc, I don't see much restrictions
>> limited.  I'd like to know if it supports any of the following -
>
>> 1) unlimited tar size and tar entry size
>> 2) support the full POSIX tar standard or more modern GNU extension of
>> said standard
>
> No on both counts.  Ant's tar code has been the base for Commons
> Compress and has the same limitations.
>
>> 3) able to preserve file permissions after untar
>
> No.  Part of the reason is Java's limited support for permissions.  This
> may change once Ant can use NIO2.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Re: Untar task in Ant

Posted by Stefan Bodewig <bo...@apache.org>.
On 2011-01-07, Lin Sun wrote:

> I 'd like to use untar task in ant, looks very cool and mature!  :)
> In reading through the user doc, I don't see much restrictions
> limited.  I'd like to know if it supports any of the following -

> 1) unlimited tar size and tar entry size
> 2) support the full POSIX tar standard or more modern GNU extension of
> said standard

No on both counts.  Ant's tar code has been the base for Commons
Compress and has the same limitations.

> 3) able to preserve file permissions after untar

No.  Part of the reason is Java's limited support for permissions.  This
may change once Ant can use NIO2.

Stefan

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