1 /*
   2  * security policy used by the test process
   3  */
   4 
   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10   // the test needs to move classfiles out of its classpath
  11   permission java.io.FilePermission "${test.classes}", "read,write,delete";
  12   permission java.io.FilePermission "${test.classes}${/}-", "read,write,delete";
  13 
  14   // test needs to install class files
  15   permission java.io.FilePermission ".", "read,write,delete";
  16   permission java.io.FilePermission ".${/}-", "read,write,delete";
  17 
  18   // used by TestLibrary to determine test environment 
  19   permission java.util.PropertyPermission "test.*", "read";
  20   permission java.util.PropertyPermission "user.dir", "read";
  21   permission java.util.PropertyPermission "java.home", "read";
  22 };