GP-5819 - Help - Added validation code to check all Ghidra TOC files after help is built

This commit is contained in:
dragonmacher
2025-07-21 11:59:01 -04:00
parent 8c56fc8e04
commit 17c28209ef
23 changed files with 427 additions and 155 deletions

View File

@@ -17,7 +17,8 @@ package help;
import java.io.*;
import java.nio.file.*;
import java.util.*;
import java.util.Collection;
import java.util.Date;
import ghidra.util.exception.AssertException;
import help.validator.LinkDatabase;
@@ -135,9 +136,7 @@ public class JavaHelpFilesBuilder {
out.println("<map version=\"1.0\">");
Collection<AnchorDefinition> anchors = help.getAllAnchorDefinitions();
Iterator<AnchorDefinition> iterator = anchors.iterator();
while (iterator.hasNext()) {
AnchorDefinition a = iterator.next();
for (AnchorDefinition a : anchors) {
String anchorTarget = a.getHelpPath();
//