diff --git a/reproducible-jar-mtime.patch b/reproducible-jar-mtime.patch index 2a4d837..1a089bf 100644 --- a/reproducible-jar-mtime.patch +++ b/reproducible-jar-mtime.patch @@ -1,11 +1,12 @@ --- apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java 2024-07-22 09:18:51.385562681 +0200 -+++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java 2024-07-22 09:44:04.730208036 +0200 -@@ -128,6 +128,8 @@ ++++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java 2024-07-22 10:01:32.218061839 +0200 +@@ -128,6 +128,9 @@ return millis; } if ("now".equalsIgnoreCase(dateTime)) { + if ( System.getenv("SOURCE_DATE_EPOCH") != null ) { + return 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")); ++ } return System.currentTimeMillis(); } DateFormat df = dfFactory.getPrimaryFormat();