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

Add FileUtil.makeExecutable(Path) #542

Closed
hohwille opened this issue Aug 19, 2024 · 0 comments · Fixed by #586
Closed

Add FileUtil.makeExecutable(Path) #542

hohwille opened this issue Aug 19, 2024 · 0 comments · Fixed by #586
Assignees
Labels
enhancement New feature or request

Comments

@hohwille
Copy link
Member

hohwille commented Aug 19, 2024

In several PRs we have already discussed about making a file executable (see resolved review comments):

To avoid copy&paste and other hacks, we should create a clean solution:

  • Add new method makeExecutable(Path) to FileAccess
  • Implement that in FileAccessImpl so that it behaves like chmod a+x on the given file.
  • If the given Path does not exist, the method should fail.
  • On Windows it should behave like chmod a+x «file» in git-bash (do nothing) but on all other OS it should add the executable flags (without modifying other file attributes).
@hohwille hohwille added the enhancement New feature or request label Aug 19, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Aug 19, 2024
@jan-vcapgemini jan-vcapgemini self-assigned this Aug 27, 2024
@jan-vcapgemini jan-vcapgemini moved this from 🆕 New to 🏗 In progress in IDEasy board Aug 27, 2024
jan-vcapgemini added a commit to jan-vcapgemini/IDEasy that referenced this issue Aug 27, 2024
removed setMacOsFilePermissions method from Intellij
used makeExecutable from FileAccess instead
@hohwille hohwille added this to the release:2024.09.001 milestone Sep 3, 2024
@hohwille hohwille linked a pull request Sep 3, 2024 that will close this issue
jan-vcapgemini added a commit to jan-vcapgemini/IDEasy that referenced this issue Sep 5, 2024
replaced default implementation of makeExecutable with an equivalent of 'chmod a+x'.
made sure that no permission changes will be applied on Windows
hohwille pushed a commit that referenced this issue Sep 5, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in IDEasy board Sep 5, 2024
@hohwille hohwille removed a link to a pull request Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants