--- a/src/jdk.jpackage/share/classes/jdk/jpackage/internal/BundlerParamInfo.java Tue Feb 12 11:54:56 2019 -0500
+++ b/src/jdk.jpackage/share/classes/jdk/jpackage/internal/BundlerParamInfo.java Tue Feb 12 11:58:41 2019 -0500
@@ -51,11 +51,16 @@
String id;
/**
- * Type of the parameter.
+ * Type of the parameter
*/
Class<T> valueType;
/**
+ * Indicates if value was set using default value function
+ */
+ boolean isDefaultValue;
+
+ /**
* If the value is not set, and no fallback value is found,
* the parameter uses the value returned by the producer.
*/
@@ -94,6 +99,10 @@
this.valueType = valueType;
}
+ boolean getIsDefaultValue() {
+ return isDefaultValue;
+ }
+
Function<Map<String, ? super Object>, T> getDefaultValueFunction() {
return defaultValueFunction;
}
@@ -144,6 +153,7 @@
T result = getDefaultValueFunction().apply(params);
if (result != null) {
params.put(getID(), result);
+ isDefaultValue = true;
}
return result;
}