From fb4f63b6f72e4e3b809e4ba3d6ffe4ad9cfd5243db88372f819d1455429f8234 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 14 Sep 2023 21:57:41 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/groovy18?expand=0&rev=30 --- groovy18-timestamp.patch | 2 +- groovy18.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/groovy18-timestamp.patch b/groovy18-timestamp.patch index 0669c5c..e795acf 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 = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))).toString() ++ private final static compileTime = (System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))) : new Date()).toString() public void visit(ASTNode[] astNodes, SourceUnit sourceUnit) { diff --git a/groovy18.spec b/groovy18.spec index c0ec125..63a293f 100644 --- a/groovy18.spec +++ b/groovy18.spec @@ -190,7 +190,7 @@ export CLASSPATH=$(build-classpath ant/ant-antlr) %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} export ANT_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED" %endif -%ant -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \ +%ant -v -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \ createJars javadoc %install