aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authoryan <none@none>2014-08-25 17:38:53 +0400
committeryan <none@none>2014-08-25 17:38:53 +0400
commit8f6421c136f3778ae029e97366eaf2a76135b311 (patch)
tree9bcd49ab6f6ce6a144828ce058235cf0cc98f969 /make
parent32a9403b96871ddeb38bef72010c4c28275d076c (diff)
downloadnashorn-8f6421c136f3778ae029e97366eaf2a76135b311.tar.gz
8055878: Nashorn: all tests failed with AccessControlException
Reviewed-by: sundar, hannesw Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
Diffstat (limited to 'make')
-rw-r--r--make/build.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml
index 38be05a7..507c0f1e 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -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}"/>
@@ -294,7 +297,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;
};