< prev index next >

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

Print this page

        

*** 32,52 **** * @build JPackagePath * @modules jdk.jpackage * @run main/othervm -Xmx512m JPackageCreateImageMainClassAttributeTest */ public class JPackageCreateImageMainClassAttributeTest { private static final String app = JPackagePath.getApp(); private static final String appOutput = JPackagePath.getAppOutputFile(); private static final String appWorkingDir = JPackagePath.getAppWorkingDir(); private static final String[] CMD = { "create-image", "--input", "input", ! "--output", "output", "--name", "test", "--main-jar", "hello.jar", - "--overwrite", "--files", "hello.jar"}; private static void validateResult(String[] result) throws Exception { if (result.length != 2) { throw new AssertionError( --- 32,52 ---- * @build JPackagePath * @modules jdk.jpackage * @run main/othervm -Xmx512m JPackageCreateImageMainClassAttributeTest */ public class JPackageCreateImageMainClassAttributeTest { + private static final String OUTPUT = "output"; private static final String app = JPackagePath.getApp(); private static final String appOutput = JPackagePath.getAppOutputFile(); private static final String appWorkingDir = JPackagePath.getAppWorkingDir(); private static final String[] CMD = { "create-image", "--input", "input", ! "--output", OUTPUT, "--name", "test", "--main-jar", "hello.jar", "--files", "hello.jar"}; private static void validateResult(String[] result) throws Exception { if (result.length != 2) { throw new AssertionError(
*** 83,92 **** --- 83,93 ---- JPackageHelper.executeCLI(true, CMD); validate(); } private static void testMainClassAttributeToolProvider() throws Exception { + JPackageHelper.deleteOutputFolder(OUTPUT); JPackageHelper.executeToolProvider(true, CMD); validate(); } public static void main(String[] args) throws Exception {
< prev index next >