equal
deleted
inserted
replaced
25 * questions. |
25 * questions. |
26 */ |
26 */ |
27 |
27 |
28 /* |
28 /* |
29 * @test |
29 * @test |
30 * @summary jpackage create image --version test |
30 * @summary jpackage create image --app-version test |
31 * @library ../helpers |
31 * @library ../helpers |
32 * @build JPackageHelper |
32 * @build JPackageHelper |
33 * @build JPackagePath |
33 * @build JPackagePath |
34 * @modules jdk.jpackage |
34 * @modules jdk.jpackage |
35 * @run main/othervm -Xmx512m JPackageCreateImageVersionTest |
35 * @run main/othervm -Xmx512m JPackageCreateImageVersionTest |
56 "--name", "test", |
56 "--name", "test", |
57 "--main-jar", "hello.jar", |
57 "--main-jar", "hello.jar", |
58 "--class", "Hello", |
58 "--class", "Hello", |
59 "--files", "hello.jar", |
59 "--files", "hello.jar", |
60 "--force", |
60 "--force", |
61 "--version", VERSION}; |
61 "--app-version", VERSION}; |
62 |
62 |
63 private static void validate(String version) |
63 private static void validate(String version) |
64 throws Exception { |
64 throws Exception { |
65 File outfile = new File(appCfg); |
65 File outfile = new File(appCfg); |
66 if (!outfile.exists()) { |
66 if (!outfile.exists()) { |