246 args.put(StandardBundlerParam.FA_DESCRIPTION.getID(), desc);
247 }
248
249 String icon = initialMap.get(FA_ICON);
250 if (icon != null) {
251 args.put(StandardBundlerParam.FA_ICON.getID(), icon);
252 }
253
254 ArrayList<Map<String, ? super Object>> associationList =
255 new ArrayList<Map<String, ? super Object>>();
256
257 associationList.add(args);
258
259 // check that we really add _another_ value to the list
260 setOptionValue("file-associations", associationList);
261
262 }),
263
264 ADD_LAUNCHER ("add-launcher",
265 OptionCategories.PROPERTY, () -> {
266 context().addLaunchers.add(
267 new AddLauncherArguments(popArg()));
268 }),
269
270 TEMP_ROOT ("temp-root", OptionCategories.PROPERTY, () -> {
271 context().buildRoot = popArg();
272 context().userProvidedBuildRoot = true;
273 setOptionValue("temp-root", context().buildRoot);
274 }),
275
276 INSTALL_DIR ("install-dir", OptionCategories.PROPERTY),
277
278 PREDEFINED_APP_IMAGE ("app-image", OptionCategories.PROPERTY, ()-> {
279 setOptionValue("app-image", popArg());
280 context().hasAppImage = true;
281 }),
282
283 PREDEFINED_RUNTIME_IMAGE ("runtime-image", OptionCategories.PROPERTY),
284
285 MAIN_JAR ("main-jar", OptionCategories.PROPERTY, () -> {
286 context().mainJarPath = popArg();
287 context().hasMainJar = true;
|
246 args.put(StandardBundlerParam.FA_DESCRIPTION.getID(), desc);
247 }
248
249 String icon = initialMap.get(FA_ICON);
250 if (icon != null) {
251 args.put(StandardBundlerParam.FA_ICON.getID(), icon);
252 }
253
254 ArrayList<Map<String, ? super Object>> associationList =
255 new ArrayList<Map<String, ? super Object>>();
256
257 associationList.add(args);
258
259 // check that we really add _another_ value to the list
260 setOptionValue("file-associations", associationList);
261
262 }),
263
264 ADD_LAUNCHER ("add-launcher",
265 OptionCategories.PROPERTY, () -> {
266 String spec = popArg();
267 String name = null;
268 String filename = spec;
269 if (spec.contains("=")) {
270 String[] values = spec.split("=", 2);
271 name = values[0];
272 filename = values[1];
273 }
274 context().addLaunchers.add(
275 new AddLauncherArguments(name, filename));
276 }),
277
278 TEMP_ROOT ("temp-root", OptionCategories.PROPERTY, () -> {
279 context().buildRoot = popArg();
280 context().userProvidedBuildRoot = true;
281 setOptionValue("temp-root", context().buildRoot);
282 }),
283
284 INSTALL_DIR ("install-dir", OptionCategories.PROPERTY),
285
286 PREDEFINED_APP_IMAGE ("app-image", OptionCategories.PROPERTY, ()-> {
287 setOptionValue("app-image", popArg());
288 context().hasAppImage = true;
289 }),
290
291 PREDEFINED_RUNTIME_IMAGE ("runtime-image", OptionCategories.PROPERTY),
292
293 MAIN_JAR ("main-jar", OptionCategories.PROPERTY, () -> {
294 context().mainJarPath = popArg();
295 context().hasMainJar = true;
|