This commit is contained in:
parent
086ed3147d
commit
fb4f63b6f7
@ -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) {
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user