Skip to content

Commit

Permalink
[Build] Set file-permissions for launcher libraries before SCM check-in
Browse files Browse the repository at this point in the history
Instead of setting the file permissions of the launcher library files
when assembling the jars in each Maven build, check-in the libraries
into SCM with the desired permissions already set.
  • Loading branch information
HannesWell committed May 7, 2024
1 parent a394f9c commit 76b3805
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ pipeline {
echo 'Copy new binaries'
mv eclipse${exeFileExt} ${binPath}
mv eclipse_*.${libFileExt} ${libPath}
echo 'Set file permissions for launcher library'
chmod 755 ${libPath}/eclipse_*.${libFileExt}
'''
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ root.macosx.cocoa.aarch64=bin/cocoa/macosx/aarch64
root.macosx.cocoa.aarch64.permissions.755=Eclipse.app/Contents/MacOS/launcher

root.linux.gtk.x86_64=bin/gtk/linux/x86_64,gtk_root
root.linux.gtk.x86_64.permissions.755=libcairo-swt.so
root.linux.gtk.x86_64.permissions.755=launcher
26 changes: 1 addition & 25 deletions launcher-binary-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,37 +36,13 @@
</environments>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-launcher-natives</id>
<phase>process-resources</phase>
<configuration>
<property name="feature.base" value="."/>
<target>
<copy todir="${project.build.directory}" overwrite="true">
<fileset dir="${rt.equinox.binaries.loc}/${project.artifactId}">
<include name="*.so"/>
<include name="*.dll"/>
</fileset>
</copy>
<chmod file="${project.build.directory}/*.so" perm="755" verbose="true"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<configuration>
<additionalFileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<directory>${rt.equinox.binaries.loc}/${project.artifactId}</directory>
<includes>
<include>*.so</include>
<include>*.dll</include>
Expand Down

0 comments on commit 76b3805

Please sign in to comment.