equal
deleted
inserted
replaced
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".replaceAll(/\//g, File.separater); |
51 |
51 |
52 // run jdep on nashorn.jar - only summary but print profile info |
52 // run jdep on nashorn.jar - only summary but print profile info |
|
53 $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin |
53 `${jdepsPath} -s -P ${nashornJar.absolutePath}` |
54 `${jdepsPath} -s -P ${nashornJar.absolutePath}` |
54 |
55 |
55 // check for "(compact1)" in output from jdep tool |
56 // check for "(compact1)" in output from jdep tool |
56 if (! /(compact1)/.test($OUT)) { |
57 if (! /(compact1)/.test($OUT)) { |
57 fail("non-compact1 dependency: " + $OUT); |
58 fail("non-compact1 dependency: " + $OUT); |