< prev index next >

test/jdk/tools/jlink/JLinkTest.java

Print this page

        

*** 108,139 **** expectedJLinkPlugins); } } { - // No --module-path specified. $JAVA_HOME/jmods should be assumed. - // The following should succeed as it uses only system modules. - String imageDir = "bug818977-no-modulepath"; - JImageGenerator.getJLinkTask() - .output(helper.createNewImageDir(imageDir)) - .addMods("jdk.scripting.nashorn") - .call().assertSuccess(); - } - - { - // invalid --module-path specified. java.base not found it it. - // $JAVA_HOME/jmods should be added automatically. - // The following should succeed as it uses only system modules. - String imageDir = "bug8189777-invalid-modulepath"; - JImageGenerator.getJLinkTask() - .modulePath("does_not_exist_path") - .output(helper.createNewImageDir(imageDir)) - .addMods("jdk.scripting.nashorn") - .call().assertSuccess(); - } - - { // No --module-path specified. --add-modules ALL-MODULE-PATH specified. String imageDir = "bug8189777-all-module-path"; JImageGenerator.getJLinkTask() .output(helper.createNewImageDir(imageDir)) .addMods("ALL-MODULE-PATH") --- 108,117 ----
< prev index next >