allow tests to write to clover db

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379118 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-08-30 20:25:26 +00:00
parent 4b3df5d661
commit 1b85d60d02
2 changed files with 2 additions and 0 deletions

View File

@ -798,6 +798,7 @@
<!-- Restrict access to certain Java features and install security manager: --> <!-- Restrict access to certain Java features and install security manager: -->
<sysproperty key="tests.sandbox.dir" value="${build.dir}" /> <sysproperty key="tests.sandbox.dir" value="${build.dir}" />
<sysproperty key="clover.db.dir" value="${clover.db.dir}" />
<sysproperty key="java.security.manager" value="java.lang.SecurityManager" /> <sysproperty key="java.security.manager" value="java.lang.SecurityManager" />
<sysproperty key="java.security.policy" value="${common.dir}/tools/junit4/tests.policy" /> <sysproperty key="java.security.policy" value="${common.dir}/tools/junit4/tests.policy" />

View File

@ -27,6 +27,7 @@ grant {
// permissions for file access, write access only to sandbox: // permissions for file access, write access only to sandbox:
permission java.io.FilePermission "<<ALL FILES>>", "read,execute"; permission java.io.FilePermission "<<ALL FILES>>", "read,execute";
permission java.io.FilePermission "${tests.sandbox.dir}${/}-", "read,execute,write,delete"; permission java.io.FilePermission "${tests.sandbox.dir}${/}-", "read,execute,write,delete";
permission java.io.FilePermission "${clover.db.dir}${/}-", "read,execute,write,delete";
// all possibilities of accepting/binding connections on localhost with ports >=1024: // all possibilities of accepting/binding connections on localhost with ports >=1024:
permission java.net.SocketPermission "localhost:1024-", "accept,listen"; permission java.net.SocketPermission "localhost:1024-", "accept,listen";