From a869a78e172bc86884c6202c40ebb2aa3aff14bb8a405a3f597dd82b779b2ec8 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 14 Sep 2023 18:55:03 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/groovy18?expand=0&rev=26 --- groovy18-timestamp.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/groovy18-timestamp.patch b/groovy18-timestamp.patch index 716fcba..6725045 100644 --- a/groovy18-timestamp.patch +++ b/groovy18-timestamp.patch @@ -18,7 +18,7 @@ public class CompiledAtASTTransformation implements ASTTransformation { - private final static compileTime = new Date().toString() -+ private final static compileTime = System.getenv("SOURCE_DATE_EPOCH") != null ? new new Date(1000 * Long.parseLong(sourceDateEpoch)).toString() : new Date().toString() ++ private final static compileTime = System.getenv("SOURCE_DATE_EPOCH") != null ? new new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))).toString() : new Date().toString() public void visit(ASTNode[] astNodes, SourceUnit sourceUnit) { @@ -29,10 +29,10 @@ - -+ ++ ${title} - -+ ++ @@ -43,10 +43,10 @@ - -+ ++ ${title} - -+ ++ @@ -57,7 +57,7 @@ - -+ ++ ${title} @@ -68,10 +68,10 @@ - -+ ++ ${title} - -+ ++