mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-06 04:59:23 +08:00
Help: remove timestamps from generated JavaHelp files
Remove wall-clock timestamps from generated HelpSet, map and TOC XML comments to make build outputs reproducible.
This commit is contained in:
@@ -18,7 +18,6 @@ package help;
|
||||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
|
||||
import ghidra.util.exception.AssertException;
|
||||
import help.validator.LinkDatabase;
|
||||
@@ -132,7 +131,7 @@ public class JavaHelpFilesBuilder {
|
||||
out.println("<?xml version='1.0' encoding='ISO-8859-1' ?>");
|
||||
out.println(
|
||||
"<!doctype MAP public \"-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN\">");
|
||||
out.println("<!-- Auto-generated on " + (new Date()).toString() + " : Do Not Edit -->");
|
||||
out.println("<!-- Auto-generated : Do Not Edit -->");
|
||||
out.println("<map version=\"1.0\">");
|
||||
|
||||
Collection<AnchorDefinition> anchors = help.getAllAnchorDefinitions();
|
||||
|
||||
@@ -154,7 +154,7 @@ public class JavaHelpSetBuilder {
|
||||
writer.newLine();
|
||||
writer.newLine();
|
||||
|
||||
writer.write("<!-- HelpSet auto-generated on " + (new Date()).toString() + " -->");
|
||||
writer.write("<!-- HelpSet auto-generated -->");
|
||||
writer.newLine();
|
||||
|
||||
writer.write("<helpset version=\"2.0\">");
|
||||
|
||||
@@ -149,7 +149,7 @@ public class OverlayHelpTree {
|
||||
|
||||
try {
|
||||
writer.println("<?xml version='1.0' encoding='ISO-8859-1' ?>");
|
||||
writer.println("<!-- Auto-generated on " + (new Date()).toString() + " -->");
|
||||
writer.println("<!-- Auto-generated -->");
|
||||
writer.println();
|
||||
writer.println("<toc version=\"2.0\">");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user