< prev index next >

test/jdk/tools/jpackage/createimage/JPackageCreateImageSecondaryLauncherTest.java

Print this page

        

*** 30,53 **** * @build JPackageCreateImageSecondaryLauncherBase * @modules jdk.jpackage * @run main/othervm -Xmx512m JPackageCreateImageSecondaryLauncherTest */ public class JPackageCreateImageSecondaryLauncherTest { private static final String [] CMD = { "create-image", "--input", "input", ! "--output", "output", "--name", "test", "--main-jar", "hello.jar", "--main-class", "Hello", "--files", "hello.jar", - "--overwrite", "--secondary-launcher", "sl.properties"}; public static void main(String[] args) throws Exception { JPackageHelper.createHelloImageJar(); JPackageCreateImageSecondaryLauncherBase.createSLProperties(); JPackageCreateImageSecondaryLauncherBase.testCreateImage(CMD); JPackageCreateImageSecondaryLauncherBase.testCreateImageToolProvider(CMD); } } --- 30,54 ---- * @build JPackageCreateImageSecondaryLauncherBase * @modules jdk.jpackage * @run main/othervm -Xmx512m JPackageCreateImageSecondaryLauncherTest */ public class JPackageCreateImageSecondaryLauncherTest { + private static final String OUTPUT = "output"; private static final String [] CMD = { "create-image", "--input", "input", ! "--output", OUTPUT, "--name", "test", "--main-jar", "hello.jar", "--main-class", "Hello", "--files", "hello.jar", "--secondary-launcher", "sl.properties"}; public static void main(String[] args) throws Exception { JPackageHelper.createHelloImageJar(); JPackageCreateImageSecondaryLauncherBase.createSLProperties(); JPackageCreateImageSecondaryLauncherBase.testCreateImage(CMD); + JPackageHelper.deleteOutputFolder(OUTPUT); JPackageCreateImageSecondaryLauncherBase.testCreateImageToolProvider(CMD); } }
< prev index next >