12 lines
670 B
Diff
12 lines
670 B
Diff
|
--- a/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java
|
||
|
+++ b/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java
|
||
|
@@ -837,7 +837,7 @@ private void suggestProviders(JlinkConfiguration config, List<String> args)
|
||
|
|
||
|
private String getSaveOpts() {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
- sb.append('#').append(new Date()).append("\n");
|
||
|
+ sb.append('#').append(System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))) : new Date()).append("\n");
|
||
|
for (String c : optionsHelper.getInputCommand()) {
|
||
|
sb.append(c).append(" ");
|
||
|
}
|