[ 
https://issues.apache.org/jira/browse/COMPRESS-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17866967#comment-17866967
 ] 

Benjamin Marwell commented on COMPRESS-682:
-------------------------------------------

Here is something to get you started (uncompressed, should make it easier)

[^empty-file-uncompressed.xar]

Created like so:
{code:java}
$ echo "" > empty

$ xar --distribution --compression none -cf empty-file-uncompressed.xar empty 

$ file empty-file-uncompressed.xar 
empty-file-uncompressed.xar: xar archive compressed TOC: 315, SHA-1 checksum

$ xar -tvf empty-file-uncompressed.xar
-rw-r--r--   unknown/unknown           1 1970-01-01 00:00:00 empty{code}
The --distribution parameter excludes timestamps, users/groups, etc.

 

 

> 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.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 LGLG 3.0



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to