Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution zip doesn't contain executable flags for scripts #2540

Closed
trancexpress opened this issue Aug 30, 2023 · 0 comments · Fixed by #2541
Closed

Distribution zip doesn't contain executable flags for scripts #2540

trancexpress opened this issue Aug 30, 2023 · 0 comments · Fixed by #2541

Comments

@trancexpress
Copy link
Contributor

trancexpress commented Aug 30, 2023

E.g. the distribution spotbugs-4.7.3.zip as the following file permissions in the bin/ folder:

drwxr-xr-x 4 sandreev users 4096 Feb  1  1980 .
drwxr-xr-x 6 sandreev users 4096 Feb  1  1980 ..
-rw-rw-r-- 1 sandreev users   77 Feb  1  1980 addMessages
-rw-rw-r-- 1 sandreev users  189 Feb  1  1980 computeBugHistory
-rw-rw-r-- 1 sandreev users   85 Feb  1  1980 convertXmlToText
-rw-rw-r-- 1 sandreev users   90 Feb  1  1980 copyBuggySource
-rw-rw-r-- 1 sandreev users  145 Feb  1  1980 defectDensity
drwxrwxr-x 2 sandreev users 4096 Feb  1  1980 deprecated
drwxrwxr-x 2 sandreev users 4096 Feb  1  1980 experimental
-rw-rw-r-- 1 sandreev users 4280 Feb  1  1980 fb
-rw-rw-r-- 1 sandreev users 2053 Feb  1  1980 fbwrap
-rw-rw-r-- 1 sandreev users  186 Feb  1  1980 filterBugs
-rw-rw-r-- 1 sandreev users   96 Feb  1  1980 findbugs-msv
-rw-rw-r-- 1 sandreev users   94 Feb  1  1980 listBugDatabaseInfo
-rw-rw-r-- 1 sandreev users   89 Feb  1  1980 mineBugHistory
-rw-rw-r-- 1 sandreev users   90 Feb  1  1980 printAppVersion
-rw-rw-r-- 1 sandreev users   87 Feb  1  1980 printClass
-rw-rw-r-- 1 sandreev users   98 Feb  1  1980 rejarForAnalysis
-rw-rw-r-- 1 sandreev users   93 Feb  1  1980 setBugDatabaseInfo
-rw-rw-r-- 1 sandreev users 4387 Feb  1  1980 spotbugs
-rw-rw-r-- 1 sandreev users 3185 Feb  1  1980 spotbugs2
-rw-rw-r-- 1 sandreev users 6636 Feb  1  1980 spotbugs.bat
-rw-rw-r-- 1 sandreev users 9662 Feb  1  1980 spotbugs.ico
-rw-rw-r-- 1 sandreev users  197 Feb  1  1980 unionBugs
-rw-rw-r-- 1 sandreev users   79 Feb  1  1980 xpathFind

It would be great if the execute flag is set, so that the distribution can be used after unpacking, without setting the execute flag to run the scripts.

trancexpress pushed a commit to trancexpress/spotbugs that referenced this issue Aug 30, 2023
Adjust the zip creation during gradle target distZip,
to include execute file permissions for archived files.
So that the archive can be unpacked and directly used,
on Unix platforms.

Fixes: spotbugs#2540
trancexpress pushed a commit to trancexpress/spotbugs that referenced this issue Aug 30, 2023
Adjust the zip creation during gradle target distZip,
to include execute file permissions for archived files.
So that the archive can be unpacked and directly used,
on Unix platforms.

Fixes: spotbugs#2540
trancexpress pushed a commit to trancexpress/spotbugs that referenced this issue Aug 30, 2023
Adjust the zip creation during gradle target distZip,
to include execute file permissions for archived files.
So that the archive can be unpacked and directly used,
on Unix platforms.

Fixes: spotbugs#2540
iloveeclipse pushed a commit that referenced this issue Aug 30, 2023
Adjust the zip creation during gradle target distZip,
to include execute file permissions for archived files.
So that the archive can be unpacked and directly used,
on Unix platforms.

Fixes: #2540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant