104 options.put(CLIOptions.WIN_PER_USER_INSTALLATION.getId(),
105 USE.INSTALL);
106 }
107
108 if (Platform.getPlatform() == Platform.MAC) {
109 options.put(CLIOptions.MAC_SIGN.getId(), USE.ALL);
110 options.put(CLIOptions.MAC_BUNDLE_NAME.getId(), USE.ALL);
111 options.put(CLIOptions.MAC_BUNDLE_IDENTIFIER.getId(), USE.ALL);
112 options.put(CLIOptions.MAC_BUNDLE_SIGNING_PREFIX.getId(),
113 USE.ALL);
114 options.put(CLIOptions.MAC_SIGNING_KEY_NAME.getId(), USE.ALL);
115 options.put(CLIOptions.MAC_SIGNING_KEYCHAIN.getId(), USE.ALL);
116 options.put(CLIOptions.MAC_APP_STORE_CATEGORY.getId(), USE.ALL);
117 options.put(CLIOptions.MAC_APP_STORE_ENTITLEMENTS.getId(),
118 USE.ALL);
119 }
120
121 if (Platform.getPlatform() == Platform.LINUX) {
122 options.put(CLIOptions.LINUX_BUNDLE_NAME.getId(), USE.INSTALL);
123 options.put(CLIOptions.LINUX_DEB_MAINTAINER.getId(), USE.INSTALL);
124 options.put(CLIOptions.LINUX_DEB_COPYRIGHT_FILE.getId(), USE.INSTALL);
125 options.put(CLIOptions.LINUX_CATEGORY.getId(), USE.INSTALL);
126 options.put(CLIOptions.LINUX_RPM_LICENSE_TYPE.getId(), USE.INSTALL);
127 options.put(CLIOptions.LINUX_PACKAGE_DEPENDENCIES.getId(),
128 USE.INSTALL);
129 options.put(CLIOptions.LINUX_MENU_GROUP.getId(), USE.INSTALL);
130 options.put(CLIOptions.RELEASE.getId(), USE.INSTALL);
131 }
132 }
133
134 static boolean checkIfSupported(CLIOptions arg) {
135 return options.containsKey(arg.getId());
136 }
137
138 static boolean checkIfImageSupported(CLIOptions arg) {
139 USE use = options.get(arg.getId());
140 return USE.ALL == use || USE.LAUNCHER == use;
141 }
142
143 static boolean checkIfInstallerSupported(CLIOptions arg) {
144 USE use = options.get(arg.getId());
|
104 options.put(CLIOptions.WIN_PER_USER_INSTALLATION.getId(),
105 USE.INSTALL);
106 }
107
108 if (Platform.getPlatform() == Platform.MAC) {
109 options.put(CLIOptions.MAC_SIGN.getId(), USE.ALL);
110 options.put(CLIOptions.MAC_BUNDLE_NAME.getId(), USE.ALL);
111 options.put(CLIOptions.MAC_BUNDLE_IDENTIFIER.getId(), USE.ALL);
112 options.put(CLIOptions.MAC_BUNDLE_SIGNING_PREFIX.getId(),
113 USE.ALL);
114 options.put(CLIOptions.MAC_SIGNING_KEY_NAME.getId(), USE.ALL);
115 options.put(CLIOptions.MAC_SIGNING_KEYCHAIN.getId(), USE.ALL);
116 options.put(CLIOptions.MAC_APP_STORE_CATEGORY.getId(), USE.ALL);
117 options.put(CLIOptions.MAC_APP_STORE_ENTITLEMENTS.getId(),
118 USE.ALL);
119 }
120
121 if (Platform.getPlatform() == Platform.LINUX) {
122 options.put(CLIOptions.LINUX_BUNDLE_NAME.getId(), USE.INSTALL);
123 options.put(CLIOptions.LINUX_DEB_MAINTAINER.getId(), USE.INSTALL);
124 options.put(CLIOptions.LINUX_DEB_COPYRIGHT_FILE.getId(),
125 USE.INSTALL);
126 options.put(CLIOptions.LINUX_CATEGORY.getId(), USE.INSTALL);
127 options.put(CLIOptions.LINUX_RPM_LICENSE_TYPE.getId(), USE.INSTALL);
128 options.put(CLIOptions.LINUX_PACKAGE_DEPENDENCIES.getId(),
129 USE.INSTALL);
130 options.put(CLIOptions.LINUX_MENU_GROUP.getId(), USE.INSTALL);
131 options.put(CLIOptions.RELEASE.getId(), USE.INSTALL);
132 }
133 }
134
135 static boolean checkIfSupported(CLIOptions arg) {
136 return options.containsKey(arg.getId());
137 }
138
139 static boolean checkIfImageSupported(CLIOptions arg) {
140 USE use = options.get(arg.getId());
141 return USE.ALL == use || USE.LAUNCHER == use;
142 }
143
144 static boolean checkIfInstallerSupported(CLIOptions arg) {
145 USE use = options.get(arg.getId());
|