Codebase list findbugs / 0de34b0
Replaced the timestamps in version.properties, the man pages and the documentation with SOURCE_DATE_EPOCH Emmanuel Bourg 7 years ago
3 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
77 - Refreshed debian/copyright
88 * Moved the core library, the annotations and the Ant tasks to distinct
99 packages (Closes: #808707)
10 * Reproducibility: replaced the timestamps in version.properties,
11 the man pages and the documentation with SOURCE_DATE_EPOCH
1012 * Depend on libasm-java (>= 5.0) instead of libasm4-java
1113 * Removed junit4 and jdepend from the runtime dependencies
1214 * debian/rules: Generate the man pages during the build phase
0 Description: Make the timestamps reproducible
1 Author: Emmanuel Bourg <ebourg@apache.org>
2 Forwarded: no
3 --- a/src/java/edu/umd/cs/findbugs/Version.java
4 +++ b/src/java/edu/umd/cs/findbugs/Version.java
5 @@ -92,6 +92,12 @@
6 SimpleDateFormat eclipseDateFormat = new SimpleDateFormat("yyyyMMdd", Locale.ENGLISH);
7 SimpleDateFormat releaseDateFormat = new SimpleDateFormat(UpdateChecker.PLUGIN_RELEASE_DATE_FMT, Locale.ENGLISH);
8 Date now = new Date();
9 + if (System.getenv("SOURCE_DATE_EPOCH") != null) {
10 + now = new Date(Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")) * 1000L);
11 + dateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
12 + eclipseDateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
13 + releaseDateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
14 + }
15 COMPUTED_DATE = dateFormat.format(now);
16 COMPUTED_ECLIPSE_DATE = eclipseDateFormat.format(now);
17 String tmp = releaseDateFormat.format(now);
1111 0012-verbose-tests.patch
1212 0013-dont-fetch-external-libraries.patch
1313 0014-asm-compatibility.patch
14 0015-reproducibility.patch