I banged my head against the wall all day. I need to create a couple of assemblies ( zipand tgz) and set the correct executable permissions for shell scripts included in the archive.
It doesn't seem to matter what I do, the settings fileModeseem to be ineffective. Here is a snippet from my assembly descriptor:
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<useStrictFiltering>true</useStrictFiltering>
<outputDirectory></outputDirectory>
<unpack>true</unpack>
<fileMode>0755</fileMode>
<unpackOptions>
<lineEnding>keep</lineEnding>
<includes>
<include>**/*.sh</include>
</includes>
</unpackOptions>
<includes>
<include>com.example:my-artifact:jar</include>
</includes>
</dependencySet>
After the reversal, I do not see the expected, for example
tar pxvf target/my-package-1.0.0-SNAPSHOT.tgz
I tried with and without p, but I still do not have enough perms executable:
-rw-r--r-- 1 MWard staff 1468 3 Sep 09:58 a_script.sh
Any ideas on where I might be wrong? Thanks!
pogul source
share