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:26:03 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 146517dc8 -> 227a1db70


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/227a1db7
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/227a1db7
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/227a1db7

Branch: refs/heads/GROOVY_2_6_X
Commit: 227a1db70645c9bd89450dabb1dd1ef1aec04ca6
Parents: ed77546
Author: sunlan <sunlan@apache.org>
Authored: Tue Apr 24 08:04:37 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Tue Apr 24 08:25:59 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/227a1db7/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