fixed permissions of protobuf.exe to r-x------

This commit is contained in:
cedric.walter 2017-07-09 20:45:37 +02:00
parent 75bf94fae0
commit fd8a09f28e
2 changed files with 43 additions and 3 deletions

View file

@ -56,6 +56,7 @@
<build>
<plugins>
<!-- unpack correct protobuf exe for current os -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
@ -76,7 +77,6 @@
<classifier>${protobuf.classifier}</classifier>
<type>exe</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>${protobuf.exe}</destFileName>
</artifactItem>
</artifactItems>
@ -84,13 +84,32 @@
</execution>
</executions>
</plugin>
<!-- https://www.xolstice.org/protobuf-maven-plugin/usage.html -->
<plugin>
<!--fix permissions to R_X -->
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>set-protobuf-permissions</id>
<phase>generate-sources</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/assembly/permissions.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run protobuf https://www.xolstice.org/protobuf-maven-plugin/usage.html -->
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version>
<configuration>
<protocExecutable>${project.build.directory}/${protobuf.exe}</protocExecutable>
<protocExecutable>${project.build.directory}/${project.artifactId}-${project.version}-bin/${protobuf.exe}</protocExecutable>
</configuration>
<executions>
<execution>

View file

@ -0,0 +1,21 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>bin</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<baseDirectory>${basedir}/target/</baseDirectory>
<fileSets>
<fileSet>
<directory>${basedir}/target/dependency</directory>
<includes>
<include>**/*.*</include>
</includes>
<outputDirectory></outputDirectory>
<fileMode>0500</fileMode> <!-- r_x______ -->
</fileSet>
</fileSets>
</assembly>