Skip to content
Commits on Source (3)
jaxb (2.3.0.1-9) unstable; urgency=medium
* Team upload.
* Clamp the timestamp in the header of the files generated by XJC
to SOURCE_DATE_EPOCH to improve the reproducibility
* Standards-Version updated to 4.4.0
-- Emmanuel Bourg <ebourg@apache.org> Sat, 17 Aug 2019 00:47:25 +0200
jaxb (2.3.0.1-8) unstable; urgency=medium
* Team upload.
......
......@@ -18,7 +18,7 @@ Build-Depends:
librelaxng-datatype-java,
libxml-commons-resolver1.1-java,
maven-debian-helper (>= 2.2)
Standards-Version: 4.2.1
Standards-Version: 4.4.0
Vcs-Git: https://salsa.debian.org/java-team/jaxb.git
Vcs-Browser: https://salsa.debian.org/java-team/jaxb
Homepage: https://javaee.github.io/jaxb-v2/
......
Description: Makes the header of the files generated by XJC reproducible
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Options.java
+++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Options.java
@@ -983,10 +983,11 @@
+ "' "
+ Messages.format(Messages.TIME_FORMAT);
SimpleDateFormat dateFormat = new SimpleDateFormat(format, Locale.ENGLISH);
+ dateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
return Messages.format(
Messages.FILE_PROLOG_COMMENT,
- dateFormat.format(new Date()));
+ dateFormat.format(System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.valueOf(System.getenv("SOURCE_DATE_EPOCH"))) : new Date()));
}
/**
......@@ -6,3 +6,4 @@
07-fix-xjc-task.patch
08-java10-compatibility.patch
09-remove-reflective-access-warning.patch
10-reproducible-prolog-comment.patch