8055878: Nashorn: all tests failed with AccessControlException

Mon, 25 Aug 2014 17:38:53 +0400

author
yan
date
Mon, 25 Aug 2014 17:38:53 +0400
changeset 984
dd9ea030e762
parent 983
8c282c15c58c
child 985
88bb71f8b3c3

8055878: Nashorn: all tests failed with AccessControlException
Reviewed-by: sundar, hannesw
Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>

make/build.xml file | annotate | diff | comparison | revisions
     1.1 --- a/make/build.xml	Tue Aug 26 11:42:07 2014 +0200
     1.2 +++ b/make/build.xml	Mon Aug 25 17:38:53 2014 +0400
     1.3 @@ -32,6 +32,9 @@
     1.4      <property file="${user.home}/.nashorn.project.local.properties"/>
     1.5  
     1.6      <loadproperties srcFile="make/project.properties"/>
     1.7 +    <path id="dist.path">
     1.8 +         <pathelement location="${dist.dir}"/>
     1.9 +    </path>
    1.10      <path id="nashorn.ext.path">
    1.11        <pathelement location="${dist.dir}"/>
    1.12        <pathelement location="${java.ext.dirs}"/>
    1.13 @@ -294,7 +297,7 @@
    1.14    <target name="generate-policy-file" depends="prepare">
    1.15      <echo file="${build.dir}/nashorn.policy">
    1.16  
    1.17 -grant codeBase "file:/${toString:nashorn.ext.path}/nashorn.jar" {
    1.18 +grant codeBase "file:/${toString:dist.path}/nashorn.jar" {
    1.19      permission java.security.AllPermission;
    1.20  };
    1.21  

mercurial