equal
deleted
inserted
replaced
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 import java.nio.file.Path; |
24 import java.nio.file.Path; |
25 import jdk.jpackage.test.Test; |
25 import jdk.jpackage.test.TKit; |
26 import jdk.jpackage.test.PackageTest; |
26 import jdk.jpackage.test.PackageTest; |
27 import jdk.jpackage.test.PackageType; |
27 import jdk.jpackage.test.PackageType; |
28 import jdk.jpackage.test.JPackageCommand; |
28 import jdk.jpackage.test.JPackageCommand; |
29 |
29 |
30 /** |
30 /** |
35 |
35 |
36 /* |
36 /* |
37 * @test |
37 * @test |
38 * @summary jpackage with --app-image |
38 * @summary jpackage with --app-image |
39 * @library ../helpers |
39 * @library ../helpers |
|
40 * @build jdk.jpackage.test.* |
40 * @modules jdk.jpackage/jdk.jpackage.internal |
41 * @modules jdk.jpackage/jdk.jpackage.internal |
41 * @run main/othervm/timeout=360 -Xmx512m AppImagePackageTest |
42 * @run main/othervm/timeout=360 -Xmx512m AppImagePackageTest |
42 */ |
43 */ |
43 public class AppImagePackageTest { |
44 public class AppImagePackageTest { |
44 |
45 |
45 public static void main(String[] args) { |
46 public static void main(String[] args) { |
46 Test.run(args, () -> { |
47 TKit.run(args, () -> { |
47 Path appimageOutput = Path.of("appimage"); |
48 Path appimageOutput = Path.of("appimage"); |
48 |
49 |
49 JPackageCommand appImageCmd = JPackageCommand.helloAppImage() |
50 JPackageCommand appImageCmd = JPackageCommand.helloAppImage() |
50 .setArgumentValue("--dest", appimageOutput) |
51 .setArgumentValue("--dest", appimageOutput) |
51 .addArguments("--package-type", "app-image"); |
52 .addArguments("--package-type", "app-image"); |
62 // Why so complicated on macOS? |
63 // Why so complicated on macOS? |
63 appimageInput = Path.of(appimageInput.toString() + ".app"); |
64 appimageInput = Path.of(appimageInput.toString() + ".app"); |
64 } |
65 } |
65 |
66 |
66 cmd.addArguments("--app-image", appimageInput); |
67 cmd.addArguments("--app-image", appimageInput); |
67 cmd.removeArgument("--input"); |
68 cmd.removeArgumentWithValue("--input"); |
68 }).addBundleDesktopIntegrationVerifier(false).run(); |
69 }).addBundleDesktopIntegrationVerifier(false).run(); |
69 }); |
70 }); |
70 } |
71 } |
71 } |
72 } |