30 * @build JPackageCreateImageSecondaryLauncherBase |
30 * @build JPackageCreateImageSecondaryLauncherBase |
31 * @modules jdk.jpackage |
31 * @modules jdk.jpackage |
32 * @run main/othervm -Xmx512m JPackageCreateImageSecondaryLauncherModuleTest |
32 * @run main/othervm -Xmx512m JPackageCreateImageSecondaryLauncherModuleTest |
33 */ |
33 */ |
34 public class JPackageCreateImageSecondaryLauncherModuleTest { |
34 public class JPackageCreateImageSecondaryLauncherModuleTest { |
|
35 private static final String OUTPUT = "output"; |
35 private static final String [] CMD = { |
36 private static final String [] CMD = { |
36 "create-image", |
37 "create-image", |
37 "--output", "output", |
38 "--output", OUTPUT, |
38 "--name", "test", |
39 "--name", "test", |
39 "--overwrite", |
|
40 "--module", "com.hello/com.hello.Hello", |
40 "--module", "com.hello/com.hello.Hello", |
41 "--module-path", "input", |
41 "--module-path", "input", |
42 "--secondary-launcher", "sl.properties"}; |
42 "--secondary-launcher", "sl.properties"}; |
43 |
43 |
44 public static void main(String[] args) throws Exception { |
44 public static void main(String[] args) throws Exception { |
45 JPackageHelper.createHelloModule(); |
45 JPackageHelper.createHelloModule(); |
46 JPackageCreateImageSecondaryLauncherBase.createSLProperties(); |
46 JPackageCreateImageSecondaryLauncherBase.createSLProperties(); |
47 JPackageCreateImageSecondaryLauncherBase.testCreateImage(CMD); |
47 JPackageCreateImageSecondaryLauncherBase.testCreateImage(CMD); |
|
48 JPackageHelper.deleteOutputFolder(OUTPUT); |
48 JPackageCreateImageSecondaryLauncherBase.testCreateImageToolProvider(CMD); |
49 JPackageCreateImageSecondaryLauncherBase.testCreateImageToolProvider(CMD); |
49 } |
50 } |
50 |
51 |
51 } |
52 } |