>  <tasks>

<target>

At least that is the only difference
from what we do in Odlparent [0] I see.
Of course that depends on the plugin version used.

Vratko.

[0] 
https://git.opendaylight.org/gerrit/gitweb?p=odlparent.git;a=blob;f=karaf/karaf-parent/pom.xml;h=f9e2ecb728fa5c53c62b2f811076703898d418ab;hb=refs/heads/master#l349

From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Satish Dutt
Sent: 10 February, 2017 08:33
To: controller-us...@lists.opendaylight.org; 
controller-dev@lists.opendaylight.org
Subject: [controller-dev] How to set the execute permission for a shell script

Hi All,

I am trying to set the execute permission for one of the script using the maven 
directive in my project specific pom file like below :

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
            <execution>
                <phase>prepare-package</phase>
                <goals>
                    <goal>run</goal>
                </goals>
                <configuration>
                  <tasks>
                    <chmod perm="755">
                        <fileset 
dir="${project.build.directory}/assembly/scripts">
                          <include name="test"/>
                        </fileset>
                    </chmod>
                  </tasks>
                </configuration>
            </execution>
        </executions>
      </plugin>


After the maven build is completed, I untarred the gz file. But in the scripts 
folder the test script is still no having the execute permission. Any ideas of 
how to make the script executable ?

Regards
-Satish
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to