This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch release/1.0.0
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/release/1.0.0 by this push:
     new b6b6f38a6 Preserve reproducible compiler timestamps
b6b6f38a6 is described below

commit b6b6f38a6616a7fce9ba2628e69c445a677daa79
Author: Yishay Weiss <[email protected]>
AuthorDate: Tue Aug 18 11:23:32 2026 +0100

    Preserve reproducible compiler timestamps
---
 .../src/main/java/org/apache/royale/maven/BaseMojo.java        | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java 
b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
index b002d5fd2..6063e796a 100644
--- a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
+++ b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
@@ -107,6 +107,12 @@ public abstract class BaseMojo
     @Parameter
     private String additionalCompilerOptions = null;
 
+    @Parameter
+    private String reproducibleBuildTimestamp = null;
+
+    @Parameter
+    private String reproducibleBuildTimestampFormat = null;
+
     @Parameter(defaultValue = "${session}", required = true, readonly = true)
     private MavenSession session;
 
@@ -317,6 +323,10 @@ public abstract class BaseMojo
                     args.add(additionalCompilerOptions.trim());
             }
         }
+        if (reproducibleBuildTimestamp != null && 
reproducibleBuildTimestampFormat != null) {
+            args.add("-metadata.date=" + reproducibleBuildTimestamp);
+            args.add("-metadata.dateFormat=" + 
reproducibleBuildTimestampFormat);
+        }
         return args;
     }
 

Reply via email to