groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [1/2] groovy git commit: Grant read "line.separator" property permission to ScriptTest.groovy
Date Tue, 24 Apr 2018 00:27:04 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 99d62cc38 -> ce41d55e8


Grant read "line.separator" property permission to ScriptTest.groovy

(cherry picked from commit 977c91a)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/ce41d55e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/ce41d55e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/ce41d55e

Branch: refs/heads/GROOVY_2_5_X
Commit: ce41d55e8d73344f8ec5680c89fb868e9de92298
Parents: 202a736
Author: sunlan <sunlan@apache.org>
Authored: Tue Apr 24 08:04:37 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Tue Apr 24 08:27:00 2018 +0800

----------------------------------------------------------------------
 security/groovy.policy | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/ce41d55e/security/groovy.policy
----------------------------------------------------------------------
diff --git a/security/groovy.policy b/security/groovy.policy
index 848de08..c688abb 100644
--- a/security/groovy.policy
+++ b/security/groovy.policy
@@ -238,6 +238,9 @@ grant codeBase "file:${user.dir}/src/test/groovy/script/ScriptTest.groovy"
{
     // Required for JUnit to report errors for scripts that are junit test cases
     permission java.util.PropertyPermission "user.home", "read";
     permission java.io.FilePermission "${user.home}${/}junit.properties", "read";
+
+    // Required for Gradle 4.7+ printing a line triggered by running the script
+    permission java.util.PropertyPermission "line.separator", "read";
 };
 
 grant codeBase "file:${user.dir}/src/test/groovy/script/EvalInScript.groovy" {


Mime
View raw message