mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8053908: jdeps is not PATH on Mac, results in ant clean test failure on Mac
Reviewed-by: hannesw, jlaskey
This commit is contained in:
parent
d8c8841e2a
commit
a55d1b4b75
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue