Can i store unix permissions in a zip file (built with apache ant)?

前端 未结 7 1636
抹茶落季
抹茶落季 2021-01-02 02:03

I\'m building a linux installer for a Java application, and I end up with an install.jar and a setup.sh that I put in a zip file using ant.

The idea is the user unzi

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 02:32

    I think you can do this with Apache Commons Compress.

    First paragraph:

    Access to internal and external attributes (which are used to store Unix permission by some zip implementations).

    Take a look at the API and look for setUnixMode()

提交回复
热议问题