< prev index next >
test/script/nosecurity/JDK-8050964.js
Print this page
rev 1276 : 8080471: fix usage of replace and file separator in Nashorn tests
*** 45,57 ****
if (! nashornJar.isAbsolute()) {
nashornJar = new File(".", nashornJar);
}
var javahome = System.getProperty("java.home");
! var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater);
if (! new File(jdepsPath).isFile()) {
! jdepsPath = javahome + "/bin/jdeps".replaceAll(/\//g, File.separater);
}
// run jdep on nashorn.jar - only summary but print profile info
$ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
`${jdepsPath} -s -P ${nashornJar.absolutePath}`
--- 45,57 ----
if (! nashornJar.isAbsolute()) {
nashornJar = new File(".", nashornJar);
}
var javahome = System.getProperty("java.home");
! var jdepsPath = javahome + "/../bin/jdeps".replace(/\//g, File.separator);
if (! new File(jdepsPath).isFile()) {
! jdepsPath = javahome + "/bin/jdeps".replace(/\//g, File.separator);
}
// run jdep on nashorn.jar - only summary but print profile info
$ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
`${jdepsPath} -s -P ${nashornJar.absolutePath}`
< prev index next >