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

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

This one is created with additional --no-compress parameter: 
[^empty-file-uncompressed-no-compress.xar]
{code:java}
$ xar --distribution --no-compress ".*"  --compression none --prop-exclude 
uid,user,username -cf empty-file-uncompressed-no-compress.xar empty 

$ file empty-file-uncompressed-no-compress.xar
empty-file-uncompressed-no-compress.xar: xar archive compressed TOC: 314, SHA-1 
checksum

$ xar -tvf empty-file-uncompressed-no-compress.xar
-rw-r--r--   unknown/unknown           1 1970-01-01 00:00:00 empty{code}
However, the username is not excluded in this case. --no-compress takes a posix 
regex.

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

Reply via email to