Skip to content

Commit

Permalink
Merge pull request #146 from metafacture/improve-java-policy-template
Browse files Browse the repository at this point in the history
Improve .java.policy template
  • Loading branch information
Phu2 authored Nov 10, 2023
2 parents 83109c5 + 90a61ee commit 67a30e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/.java.policy_move_to_home_dir
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ grant {
// Some Fix Code searches a .project file to determine an encoding
// It's no problem when there's no .project file, but it's a problem
// when there's no access in generell to this file
permission java.io.FilePermission "/Users/.project", "read";
permission java.io.FilePermission "${user.dir}/.project", "read";
permission java.io.FilePermission "${user.home}/.project", "read";
permission java.io.FilePermission "${user.home}/../.project", "read";
permission java.io.FilePermission "/.project", "read";

permission java.util.PropertyPermission "*", "read";
Expand Down

0 comments on commit 67a30e6

Please sign in to comment.