261 String ext = initialMap.get(FA_EXTENSIONS);
262 if (ext != null) {
263 args.put(StandardBundlerParam.FA_EXTENSIONS.getID(), ext);
264 }
265
266 String type = initialMap.get(FA_CONTENT_TYPE);
267 if (type != null) {
268 args.put(StandardBundlerParam.FA_CONTENT_TYPE.getID(), type);
269 }
270
271 String desc = initialMap.get(FA_DESCRIPTION);
272 if (desc != null) {
273 args.put(StandardBundlerParam.FA_DESCRIPTION.getID(), desc);
274 }
275
276 String icon = initialMap.get(FA_ICON);
277 if (icon != null) {
278 args.put(StandardBundlerParam.FA_ICON.getID(), icon);
279 }
280
281 // check that we really add _another_ value to the list
282 setOptionValue("file-associations", args);
283 }),
284
285 SECONDARY_LAUNCHER ("secondary-launcher",
286 OptionCategories.PROPERTY, () -> {
287 context().secondaryLaunchers.add(
288 new SecondaryLauncherArguments(popArg()));
289 }),
290
291 BUILD_ROOT ("build-root", OptionCategories.PROPERTY),
292
293 INSTALL_DIR ("install-dir", OptionCategories.PROPERTY),
294
295 ECHO_MODE ("echo-mode", OptionCategories.PROPERTY, () -> {
296 echo = true;
297 setOptionValue("echo-mode", true);
298 }),
299
300 PREDEFINED_APP_IMAGE ("app-image", OptionCategories.PROPERTY),
301
302 PREDEFINED_RUNTIME_IMAGE ("runtime-image", OptionCategories.PROPERTY),
|
261 String ext = initialMap.get(FA_EXTENSIONS);
262 if (ext != null) {
263 args.put(StandardBundlerParam.FA_EXTENSIONS.getID(), ext);
264 }
265
266 String type = initialMap.get(FA_CONTENT_TYPE);
267 if (type != null) {
268 args.put(StandardBundlerParam.FA_CONTENT_TYPE.getID(), type);
269 }
270
271 String desc = initialMap.get(FA_DESCRIPTION);
272 if (desc != null) {
273 args.put(StandardBundlerParam.FA_DESCRIPTION.getID(), desc);
274 }
275
276 String icon = initialMap.get(FA_ICON);
277 if (icon != null) {
278 args.put(StandardBundlerParam.FA_ICON.getID(), icon);
279 }
280
281 ArrayList<Map<String, ? super Object>> associationList =
282 new ArrayList<Map<String, ? super Object>>();
283
284 associationList.add(args);
285
286 // check that we really add _another_ value to the list
287 setOptionValue("file-associations", associationList);
288
289 }),
290
291 SECONDARY_LAUNCHER ("secondary-launcher",
292 OptionCategories.PROPERTY, () -> {
293 context().secondaryLaunchers.add(
294 new SecondaryLauncherArguments(popArg()));
295 }),
296
297 BUILD_ROOT ("build-root", OptionCategories.PROPERTY),
298
299 INSTALL_DIR ("install-dir", OptionCategories.PROPERTY),
300
301 ECHO_MODE ("echo-mode", OptionCategories.PROPERTY, () -> {
302 echo = true;
303 setOptionValue("echo-mode", true);
304 }),
305
306 PREDEFINED_APP_IMAGE ("app-image", OptionCategories.PROPERTY),
307
308 PREDEFINED_RUNTIME_IMAGE ("runtime-image", OptionCategories.PROPERTY),
|