We’d like to ship some helper scripts (shell scripts) as part of an application war. Unfortunately it appears like our build system (maven) discard the permissions on all files and the scripts end up without the executable bit set.
Is it even possible to do that? Does the .war format support executable files? If yes: how could tell maven to keep the permissions/fix them somewhere in the process?
The problem is more likely that these bits are not supported in the underlying zip-format.
The execute bit does not need to be set, if you explicitly execute /bin/sh with the script name.
Also note that your program – which knows the location of the script – can invoke “chmod +x script.sh” before launching.