8055878: Nashorn: all tests failed with AccessControlException
authoryan
Mon, 25 Aug 2014 17:38:53 +0400
changeset 26239 f38221b60b31
parent 26238 829648e12198
child 26240 4639082d6375
8055878: Nashorn: all tests failed with AccessControlException Reviewed-by: sundar, hannesw Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
nashorn/make/build.xml
--- a/nashorn/make/build.xml	Fri Aug 22 22:50:38 2014 +0530
+++ b/nashorn/make/build.xml	Mon Aug 25 17:38:53 2014 +0400
@@ -32,6 +32,9 @@
     <property file="${user.home}/.nashorn.project.local.properties"/>
 
     <loadproperties srcFile="make/project.properties"/>
+    <path id="dist.path">
+         <pathelement location="${dist.dir}"/>
+    </path>
     <path id="nashorn.ext.path">
       <pathelement location="${dist.dir}"/>
       <pathelement location="${java.ext.dirs}"/>
@@ -295,7 +298,7 @@
   <target name="generate-policy-file" depends="prepare">
     <echo file="${build.dir}/nashorn.policy">
 
-grant codeBase "file:/${toString:nashorn.ext.path}/nashorn.jar" {
+grant codeBase "file:/${toString:dist.path}/nashorn.jar" {
     permission java.security.AllPermission;
 };