265 }; |
265 }; |
266 |
266 |
267 grant codeBase "file:/${basedir}/test/script/basic/JDK-8010946-privileged.js" { |
267 grant codeBase "file:/${basedir}/test/script/basic/JDK-8010946-privileged.js" { |
268 permission java.util.PropertyPermission "java.security.policy", "read"; |
268 permission java.util.PropertyPermission "java.security.policy", "read"; |
269 }; |
269 }; |
|
270 |
|
271 grant codeBase "file:/${basedir}/test/script/basic/classloader.js" { |
|
272 permission java.lang.RuntimePermission "nashorn.JavaReflection"; |
|
273 }; |
|
274 |
270 </echo> |
275 </echo> |
271 |
276 |
272 <replace file="${build.dir}/nashorn.policy"><replacetoken>\</replacetoken><replacevalue>/</replacevalue></replace> <!--hack for Windows - to make URLs with normal path separators --> |
277 <replace file="${build.dir}/nashorn.policy"><replacetoken>\</replacetoken><replacevalue>/</replacevalue></replace> <!--hack for Windows - to make URLs with normal path separators --> |
273 <replace file="${build.dir}/nashorn.policy"><replacetoken>//</replacetoken><replacevalue>/</replacevalue></replace> <!--hack for Unix - to avoid leading // in URLs --> |
278 <replace file="${build.dir}/nashorn.policy"><replacetoken>//</replacetoken><replacevalue>/</replacevalue></replace> <!--hack for Unix - to avoid leading // in URLs --> |
274 |
279 |