${line.separator}
Builds the javafx shell.
grant codeBase "file:/${toString:dist.path}/nashorn.jar" { 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; }; //// 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:/${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/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"; }; \/ ///