diff --git a/dev-tools/tests.policy b/dev-tools/tests.policy index a394d5cb74d..724f001e422 100644 --- a/dev-tools/tests.policy +++ b/dev-tools/tests.policy @@ -32,9 +32,10 @@ grant { permission java.io.FilePermission "${m2.repository}${/}-", "read"; // system jar resources permission java.io.FilePermission "${java.home}${/}-", "read"; + // per-jvm directory permission java.io.FilePermission "${junit4.childvm.cwd}${/}temp", "read,write"; permission java.io.FilePermission "${junit4.childvm.cwd}${/}temp${/}-", "read,write,delete"; - permission java.io.FilePermission "${junit4.tempDir}${/}*", "read,write,delete"; + permission java.nio.file.LinkPermission "symbolic"; permission groovy.security.GroovyCodeSourcePermission "/groovy/script"; diff --git a/pom.xml b/pom.xml index b7aec47c07a..772d7ef6578 100644 --- a/pom.xml +++ b/pom.xml @@ -627,8 +627,7 @@ ${tests.security.manager} ${tests.compatibility} true - - ${project.build.directory} + ${basedir}/dev-tools/tests.policy