modules/jdk.packager/src/main/java/com/oracle/tools/packager/StandardBundlerParam.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 720,729 ****
--- 720,738 ----
Boolean.class,
p -> Boolean.TRUE,
(s, p) -> Boolean.valueOf(s)
);
+ public static final BundlerParamInfo<Boolean> SINGLETON = new StandardBundlerParam<> (
+ I18N.getString("param.singleton.name"),
+ I18N.getString("param.singleton.description"),
+ BundleParams.PARAM_SINGLETON,
+ Boolean.class,
+ params -> Boolean.FALSE,
+ (s, p) -> Boolean.valueOf(s)
+ );
+
public static void extractMainClassInfoFromAppResources(Map<String, ? super Object> params) {
boolean hasMainClass = params.containsKey(MAIN_CLASS.getID());
boolean hasMainJar = params.containsKey(MAIN_JAR.getID());
boolean hasMainJarClassPath = params.containsKey(CLASSPATH.getID());
boolean hasPreloader = params.containsKey(PRELOADER_CLASS.getID());