Package: h2database / 1.4.197-4

04-reproducible-javadoc.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Set the locale when generating the Javadoc to make the API documentation reproducible
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/tools/org/h2/build/BuildBase.java
+++ b/src/tools/org/h2/build/BuildBase.java
@@ -524,6 +524,10 @@
      * @param args the command line arguments to pass
      */
     protected void javadoc(String...args) {
+        StringList argumentList = args(args);
+        argumentList.addAll(0, Arrays.asList("-locale", "en", "-encoding", "UTF-8"));
+        args = argumentList.array();
+
         int result;
         PrintStream old = System.out;
         try {