best effort support this reading out of sandbox

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662465 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-02-26 14:46:38 +00:00
parent 3347d644d4
commit 9d49ce79e7
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ grant {
// should be enclosed within common.dir, but just in case:
permission java.io.FilePermission "${junit4.childvm.cwd}", "read";
// jenkins wants to read outside its sandbox, to use a special linedocs file.
// this is best effort and not really supported.
permission java.io.FilePermission "/home/jenkins/lucene-data/enwiki.random.lines.txt", "read";
// write only to sandbox
permission java.io.FilePermission "${junit4.childvm.cwd}${/}temp", "read,write,delete";
permission java.io.FilePermission "${junit4.childvm.cwd}${/}temp${/}-", "read,write,delete";