Fridrich Strba 2023-09-14 21:57:41 +00:00 committed by Git OBS Bridge
parent 086ed3147d
commit fb4f63b6f7
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
public class CompiledAtASTTransformation implements ASTTransformation { public class CompiledAtASTTransformation implements ASTTransformation {
- private final static compileTime = new Date().toString() - 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) { public void visit(ASTNode[] astNodes, SourceUnit sourceUnit) {

View File

@ -190,7 +190,7 @@ export CLASSPATH=$(build-classpath ant/ant-antlr)
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
export ANT_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED" export ANT_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED"
%endif %endif
%ant -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \ %ant -v -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \
createJars javadoc createJars javadoc
%install %install