changeset 978:11e4f12a45b0

8055878: Nashorn: all tests failed with AccessControlException Reviewed-by: sundar, hannesw Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
author yan
date Mon, 25 Aug 2014 17:38:53 +0400
parents 0f91116bb4bd
children ad7a46083364
files make/build.xml
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/build.xml	Fri Aug 22 22:50:38 2014 +0530
+++ b/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;
 };