${line.separator}
package.access=sun.misc.,\ sun.reflect.,\ jdk.nashorn.internal. grant codeBase "file:/${basedir}/${dynalink.module.classes.dir}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/${nashorn.module.classes.dir}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/${nashorn.internal.tests.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/${nashorn.api.tests.jar}" { permission java.util.PropertyPermission "parserapitest.*", "read"; permission java.util.PropertyPermission "test.*", "read"; permission java.util.PropertyPermission "test262.*", "read"; permission java.io.FilePermission "${basedir}/test/-","read"; permission java.io.FilePermission "$${user.dir}", "read"; permission java.util.PropertyPermission "user.dir", "read"; }; grant codeBase "file:/${basedir}/${file.reference.testng.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/${file.reference.jcommander.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/${file.reference.bsh.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/${file.reference.snakeyaml.jar}" { permission java.security.AllPermission; }; //// in case of absolute path: grant codeBase "file:/${nashorn.internal.tests.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${file.reference.testng.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${file.reference.jcommander.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${file.reference.bsh.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${file.reference.snakeyaml.jar}" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/test/script/trusted/*" { permission java.security.AllPermission; }; grant codeBase "file:/${basedir}/test/script/maptests/*" { permission java.io.FilePermission "${basedir}/test/script/maptests/*","read"; permission java.lang.RuntimePermission "nashorn.debugMode"; }; grant codeBase "file:/${basedir}/test/script/basic/*" { permission java.io.FilePermission "${basedir}/test/script/-", "read"; permission java.io.FilePermission "$${user.dir}", "read"; permission java.util.PropertyPermission "user.dir", "read"; permission java.util.PropertyPermission "nashorn.test.*", "read"; }; grant codeBase "file:/${basedir}/test/script/basic/apply_to_call/*" { permission java.io.FilePermission "${basedir}/test/script/-", "read"; permission java.io.FilePermission "$${user.dir}", "read"; permission java.util.PropertyPermission "user.dir", "read"; permission java.util.PropertyPermission "nashorn.test.*", "read"; }; grant codeBase "file:/${basedir}/test/script/basic/parser/*" { permission java.io.FilePermission "${basedir}/test/script/-", "read"; permission java.io.FilePermission "$${user.dir}", "read"; permission java.util.PropertyPermission "user.dir", "read"; permission java.util.PropertyPermission "nashorn.test.*", "read"; }; grant codeBase "file:/${basedir}/test/script/basic/es6/*" { permission java.io.FilePermission "${basedir}/test/script/-", "read"; permission java.io.FilePermission "$${user.dir}", "read"; permission java.util.PropertyPermission "user.dir", "read"; permission java.util.PropertyPermission "nashorn.test.*", "read"; }; grant codeBase "file:/${basedir}/test/script/basic/JDK-8010946-privileged.js" { permission java.util.PropertyPermission "java.security.policy", "read"; }; grant codeBase "file:/${basedir}/test/script/basic/classloader.js" { permission java.lang.RuntimePermission "nashorn.JavaReflection"; }; grant codeBase "file:/${basedir}/test/script/markdown.js" { permission java.io.FilePermission "${basedir}/test/script/external/showdown/-", "read"; }; grant codeBase "file:/${basedir}/test/script/basic/JDK-8158467.js" { permission java.lang.RuntimePermission "nashorn.setConfig"; }; \/ ///