Unable to grant file permission using exec-maven-plugin -


i'm trying grant file permission using next exec-maven-plugin config:

<plugin>         <groupid>org.codehaus.mojo</groupid>         <artifactid>exec-maven-plugin</artifactid>         <version>1.2.1</version>         <executions>                 <execution>                     <id>grant-permissions</id>                     <phase>validate</phase>                     <goals>                         <goal>exec</goal>                     </goals>                     <configuration>                         <executable>chmod</executable>                         <arguments>                             <argument>+x</argument>                             <argument>${somepath}/*.sh</argument>                         </arguments>                     </configuration>                 </execution> 

it prints

chmod: cannot access ‘...my_path.../*.sh’: no such file or directory

but when replace

<argument>${somepath}/*.sh</argument> 

by <argument>${somepath}/myfirst_script.sh</argument> - works fine!

could please clarify how use such approach , make argument more general using "*.sh"?

edit:

initially need since use dependency-plugin unpack dependency, reason looses file permissions, seems related jira -https://jira.codehaus.org/browse/mdep-109

i know there antrun approach return permissions back, looks ugly, want avoid using antrun plugin in pom.xml...


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -