equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package jdk.jpackage.internal; |
26 package jdk.jpackage.internal; |
27 |
27 |
28 import jdk.jpackage.internal.AbstractImageBundler; |
|
29 import jdk.jpackage.internal.BundlerParamInfo; |
|
30 import jdk.jpackage.internal.ConfigException; |
|
31 import jdk.jpackage.internal.IOUtils; |
|
32 import jdk.jpackage.internal.Log; |
|
33 import jdk.jpackage.internal.Platform; |
|
34 import jdk.jpackage.internal.StandardBundlerParam; |
|
35 import jdk.jpackage.internal.UnsupportedPlatformException; |
|
36 import jdk.jpackage.internal.WindowsAppImageBuilder; |
|
37 import jdk.jpackage.internal.resources.WinResources; |
28 import jdk.jpackage.internal.resources.WinResources; |
38 import jdk.jpackage.internal.JLinkBundlerHelper; |
|
39 import jdk.jpackage.internal.Arguments; |
|
40 import jdk.jpackage.internal.AbstractAppImageBuilder; |
|
41 |
29 |
42 import java.io.ByteArrayOutputStream; |
30 import java.io.ByteArrayOutputStream; |
43 import java.io.File; |
31 import java.io.File; |
44 import java.io.IOException; |
32 import java.io.IOException; |
45 import java.io.PrintStream; |
33 import java.io.PrintStream; |
55 public class WinAppBundler extends AbstractImageBundler { |
43 public class WinAppBundler extends AbstractImageBundler { |
56 |
44 |
57 private static final ResourceBundle I18N = ResourceBundle.getBundle( |
45 private static final ResourceBundle I18N = ResourceBundle.getBundle( |
58 "jdk.jpackage.internal.resources.WinResources"); |
46 "jdk.jpackage.internal.resources.WinResources"); |
59 |
47 |
60 public static final BundlerParamInfo<File> ICON_ICO = |
48 static final BundlerParamInfo<File> ICON_ICO = |
61 new StandardBundlerParam<>( |
49 new StandardBundlerParam<>( |
62 I18N.getString("param.icon-ico.name"), |
50 I18N.getString("param.icon-ico.name"), |
63 I18N.getString("param.icon-ico.description"), |
51 I18N.getString("param.icon-ico.description"), |
64 "icon.ico", |
52 "icon.ico", |
65 File.class, |
53 File.class, |
100 } |
88 } |
101 } |
89 } |
102 |
90 |
103 // to be used by chained bundlers, e.g. by EXE bundler to avoid |
91 // to be used by chained bundlers, e.g. by EXE bundler to avoid |
104 // skipping validation if p.type does not include "image" |
92 // skipping validation if p.type does not include "image" |
105 boolean doValidate(Map<String, ? super Object> p) |
93 private boolean doValidate(Map<String, ? super Object> p) |
106 throws UnsupportedPlatformException, ConfigException { |
94 throws UnsupportedPlatformException, ConfigException { |
107 if (Platform.getPlatform() != Platform.WINDOWS) { |
95 if (Platform.getPlatform() != Platform.WINDOWS) { |
108 throw new UnsupportedPlatformException(); |
96 throw new UnsupportedPlatformException(); |
109 } |
97 } |
110 |
98 |