Mercurial > people > rkennke > jdk9-shenandoah-final > nashorn
changeset 946:2ce63129b64a
8053908: jdeps is not PATH on Mac, results in ant clean test failure on Mac
Reviewed-by: hannesw, jlaskey
author | sundar |
---|---|
date | Thu, 31 Jul 2014 18:14:46 +0530 |
parents | 99e9916ace37 |
children | 44ab1e6cf0e8 |
files | test/script/nosecurity/JDK-8050964.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/script/nosecurity/JDK-8050964.js Wed Jul 30 10:06:42 2014 -0700 +++ b/test/script/nosecurity/JDK-8050964.js Thu Jul 31 18:14:46 2014 +0530 @@ -46,8 +46,11 @@ nashornJar = new File(".", nashornJar); } +var javahome = System.getProperty("java.home"); +var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater); + // run jdep on nashorn.jar - only summary but print profile info -`jdeps -s -P ${nashornJar.absolutePath}` +`${jdepsPath} -s -P ${nashornJar.absolutePath}` // check for "(compact1)" in output from jdep tool if (! /(compact1)/.test($OUT)) {