Affects Version/s: None
Fix Version/s: None
Number of attachments :
It would be nice to have a finer grain API to setup the permissions of files and directories than setDefault*Mode();
I realize it is possible to do it by adding each file that requires non default permissions explicitly to the archive.
However it seems like it would be nice to be able to do this:
AbstractArchiver za = new TarArchiver();
TarLongFileMode tarFileMode = new TarLongFileMode();
Map EXEC_ENTRIES_FOR_MAC = new HashMap();
EXEC_ENTRIES_FOR_MAC.put("eclipse/Eclipse.app/Contents/MacOS/eclipse", new Integer(0755));
TarCompressionMethod comp = new TarCompressionMethod();
Attached is the patch to plexus-archive that lets me do just that.
I am using it for tar.gz.
I have inserted 2 small test cases: one for tar.gz and another one for zip.
Let me know if you are interested and or would like me to revise it.
Thanks for your attention.