Similar question: Can Ant's tar task set a Linux file permission even when the task is used on other platforms?
If I use Maven 2 assembly plugin with the 'project' descriptor, is there a way to set shell script permissions to executable for example for included build.sh script files?
Example:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<configuration>
<descriptorRefs>
<descriptorRef>project</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
This will create three files
- -project.tar.bz2
- -project.tar.gz
- -project-zip
And I would like to set the file permissions for all *.sh files which are in the tar files to 'executable'.