equal
deleted
inserted
replaced
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}` |