8053908: jdeps is not PATH on Mac, results in ant clean test failure on Mac

Reviewed-by: hannesw, jlaskey
This commit is contained in:
Athijegannathan Sundararajan 2014-07-31 18:14:46 +05:30
parent d8c8841e2a
commit a55d1b4b75

View file

@ -46,8 +46,11 @@ if (! nashornJar.isAbsolute()) {
nashornJar = new File(".", nashornJar); 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 // 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 // check for "(compact1)" in output from jdep tool
if (! /(compact1)/.test($OUT)) { if (! /(compact1)/.test($OUT)) {