我使用Maven Assembly插件将我的应用程序与configuration/设置文件捆绑在一起。 它允许指定保存与文件一起存储,这是非常方便的。
但我从来没有发现一个确认,即ZIP存档是能够存储UNIX权限。 是吗? (如果你回答是或否,请发表一些certificate)。
从解压(1)手册页:
Dates, times and permissions of stored directories are not restored except under Unix. (On Windows NT and successors, timestamps are now restored.)
所以是的,权限可以存储。
是,
利润!