You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benjamin Marwell (Jira)" <ji...@apache.org> on 2024/07/22 05:26:00 UTC
[jira] [Commented] (COMPRESS-683) support ustar format
[ https://issues.apache.org/jira/browse/COMPRESS-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867657#comment-17867657 ]
Benjamin Marwell commented on COMPRESS-683:
-------------------------------------------
As a start, compression would be sufficient, as the pax/posix decompressor would also be able to read ustar archives, if I am not mistaken.
Also, I would like to use it for the Maven-Assembly-Plugin, which only does compression in most use cases.
> support ustar format
> --------------------
>
> Key: COMPRESS-683
> URL: https://issues.apache.org/jira/browse/COMPRESS-683
> Project: Commons Compress
> Issue Type: New Feature
> Components: Compressors
> Reporter: Benjamin Marwell
> Priority: Major
>
> HI,
> h2. Feature description (ustar)
> I don't know which formats can be configured, but the maven-assembly-maven-plugin uses plexus-compress which in turn uses commons-compress... and there I can chose between:
> [plexus-archiver/src/main/java/org/codehaus/plexus/archiver/tar/TarLongFileMode.java at d890260b9c960930f6a846de4952b9696f87454d · codehaus-plexus/plexus-archiver (github.com)|https://github.com/codehaus-plexus/plexus-archiver/blob/d890260b9c960930f6a846de4952b9696f87454d/src/main/java/org/codehaus/plexus/archiver/tar/TarLongFileMode.java#L22C1-L30C1]
>
> {code:java}
> public enum TarLongFileMode {
> warn,
> fail,
> truncate,
> gnu,
> omit,
> posix,
> posix_warn;
> }
> {code}
> I do not know how to create ustar archives. Maybe omit or truncate will result in a v7 or ustar archive, I really do not know. But looking at the constants, there is only:
> [TarArchiveOutputStream (Apache Commons Compress 1.26.2 API)|https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.html]
> GNU, POSIX, TRUNCATE, ERROR
> h2. Use case
> bsdtar (used by Mac and AIX, for example, as well as OpenBSD and maybe some obsolete systems like HaikuOS, HPUX, Solaris) do not support GNU nor Posix extensions. They all support v7, they all support the ustar extensions.
> ustar is therefore the only suitable format at the moment (Note: Not entirely true. AIX will implement posix/pax in AIX 7.3.1, current Mac can now also do pax). However, AIX 7.3.1 is relatively new, and there may be a lot of old systems which will justify implementing the ustar format
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)