On Tue, Feb 14, 2017 at 5:50 PM, Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) <vrpo...@cisco.com> wrote:
> > <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=f9e2ecb728fa5c53c62b2f8 > 11076703898d418ab;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 ? > You're running your build with the above on *NIX (Linux), not Windows, of course? Sorry if this sounds obvious, but I did actually chase a problem very similar to this in a past life, only to conclude that this is platform specific (and, apparently, impossible on Windows). Seems obvious, but I remember at the time we had this problem by someone putting this into a build and having it locally and then folks being surprised that it didn't work in a package - because that package had been built on a Win build server. Just thought I'd mention this here, on the off chance.. Regards > > -Satish > > _______________________________________________ > controller-dev mailing list > controller-dev@lists.opendaylight.org > https://lists.opendaylight.org/mailman/listinfo/controller-dev > >
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev