< prev index next >

test/jdk/tools/jpackage/share/ModuleTest.java

Print this page




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24  /*
  25  * @test
  26  * @summary jpackage create image modular jar test
  27  * @library ../helpers
  28  * @build JPackageHelper
  29  * @build JPackagePath
  30  * @build Base
  31  * @modules jdk.jpackage
  32  * @run main/othervm -Xmx512m ModuleTest
  33  */
  34 public class ModuleTest {
  35     private static final String OUTPUT = "output";
  36 
  37     private static final String [] CMD1 = {

  38         "--module-path", "module",
  39         "--module", "com.other/com.other.Other",
  40         "--output", OUTPUT,
  41         "--name", "test",
  42     };
  43 
  44     private static String [] commands = {

  45         "--module-path", "module",
  46         "--module", "com.other/com.other.Other",
  47         "--output", OUTPUT,
  48         "--name", "test",
  49         "--add-modules", "TBD",
  50     };
  51 
  52     private final static String [] paths = {
  53         "ALL-MODULES",
  54         "ALL_MODULE_PATH",
  55         "ALL-SYSTEM",
  56         "ALL-DEFAULT",
  57     };
  58 
  59     public static void main(String[] args) throws Exception {
  60         JPackageHelper.createOtherModule();
  61 
  62         JPackageHelper.deleteOutputFolder(OUTPUT);
  63         Base.testCreateAppImage(CMD1);
  64 


  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24  /*
  25  * @test
  26  * @summary jpackage create image modular jar test
  27  * @library ../helpers
  28  * @build JPackageHelper
  29  * @build JPackagePath
  30  * @build Base
  31  * @modules jdk.jpackage
  32  * @run main/othervm -Xmx512m ModuleTest
  33  */
  34 public class ModuleTest {
  35     private static final String OUTPUT = "output";
  36 
  37     private static final String [] CMD1 = {
  38         "--package-type", "app-image",
  39         "--module-path", "module",
  40         "--module", "com.other/com.other.Other",
  41         "--output", OUTPUT,
  42         "--name", "test",
  43     };
  44 
  45     private static String [] commands = {
  46         "--package-type", "app-image",
  47         "--module-path", "module",
  48         "--module", "com.other/com.other.Other",
  49         "--output", OUTPUT,
  50         "--name", "test",
  51         "--add-modules", "TBD",
  52     };
  53 
  54     private final static String [] paths = {
  55         "ALL-MODULES",
  56         "ALL_MODULE_PATH",
  57         "ALL-SYSTEM",
  58         "ALL-DEFAULT",
  59     };
  60 
  61     public static void main(String[] args) throws Exception {
  62         JPackageHelper.createOtherModule();
  63 
  64         JPackageHelper.deleteOutputFolder(OUTPUT);
  65         Base.testCreateAppImage(CMD1);
  66 
< prev index next >