nashorn/test/script/nosecurity/JDK-8050964.js
changeset 30698 2d50f5564f7b
parent 27824 ab74da77b5a2
child 31491 bba9c22de331
equal deleted inserted replaced
30697:85feee7acc91 30698:2d50f5564f7b
    45 if (! nashornJar.isAbsolute()) {
    45 if (! nashornJar.isAbsolute()) {
    46     nashornJar = new File(".", nashornJar);
    46     nashornJar = new File(".", nashornJar);
    47 }
    47 }
    48 
    48 
    49 var javahome = System.getProperty("java.home");
    49 var javahome = System.getProperty("java.home");
    50 var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater);
    50 var jdepsPath = javahome + "/../bin/jdeps".replace(/\//g, File.separator);
    51 if (! new File(jdepsPath).isFile()) {
    51 if (! new File(jdepsPath).isFile()) {
    52     jdepsPath = javahome + "/bin/jdeps".replaceAll(/\//g, File.separater);
    52     jdepsPath = javahome + "/bin/jdeps".replace(/\//g, File.separator);
    53 }
    53 }
    54 
    54 
    55 // run jdep on nashorn.jar - only summary but print profile info
    55 // run jdep on nashorn.jar - only summary but print profile info
    56 $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
    56 $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
    57 `${jdepsPath} -s -P ${nashornJar.absolutePath}`
    57 `${jdepsPath} -s -P ${nashornJar.absolutePath}`