[
https://issues.apache.org/jira/browse/COMPRESS-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17866972#comment-17866972
]
Benjamin Marwell commented on COMPRESS-682:
-------------------------------------------
Here is one more. A file containing just "Hello, World!". compressed with gzip.
{code:java}
$ echo "Hello, World\!" > hello_world.txt
$ xar --distribution --compression gzip -cf hello_world.xar hello_world.txt
$ file hello_world.xar
hello_world.xar: xar archive compressed TOC: 349, SHA-1 checksum, contains
zlib compressed data
$ xar -tvf hello_world.xar
-rw-r--r-- unknown/unknown 14 1970-01-01 00:00:00 hello_world.txt
{code}
If you want to see the attributes, someone else should create those files.
Compression has been done on latest Mac Release.
> Support XAR archive format
> --------------------------
>
> Key: COMPRESS-682
> URL: https://issues.apache.org/jira/browse/COMPRESS-682
> Project: Commons Compress
> Issue Type: Improvement
> Components: Archivers
> Affects Versions: 1.26.2
> Reporter: Andres Almiray
> Priority: Major
> Attachments: empty-file-uncompressed-no-compress.xar,
> empty-file-uncompressed.xar, hello_world.xar
>
>
> The XAR archive format definition can be found at
> [https://en.wikipedia.org/wiki/Xar_(archiver)]
>
> There are a couple of Java based implementations but they seem to be no
> longer maintained. Also, they have external dependencies that may no longer
> be required if relying in JDK utility classes and facilities exposed by
> commons-compress
>
> [https://github.com/sprylab/xar] is ASL 2.0
> [https://github.com/gino0631/xar] is LGPL 3.0
--
This message was sent by Atlassian Jira
(v8.20.10#820010)