Fix 'library.root' HDF value so it appears on all pages. This is a followup for ag/2109007
am: 01c1b12d98
Change-Id: Ie941aacde223e1fcd9b59f0edf2eedfdfc83f5a2
diff --git a/src/com/google/doclava/Doclava.java b/src/com/google/doclava/Doclava.java
index 8cf17e8..92cdb59 100644
--- a/src/com/google/doclava/Doclava.java
+++ b/src/com/google/doclava/Doclava.java
@@ -318,6 +318,7 @@
yamlNavFile = a[1];
} else if (a[0].equals("-dac_libraryroot")) {
libraryRoot = a[1];
+ mHDFData.add(new String[] {"library.root", a[1]});
} else if (a[0].equals("-dac_dataname")) {
mHDFData.add(new String[] {"dac_dataname", a[1]});
} else if (a[0].equals("-documentannotations")) {
@@ -1039,7 +1040,6 @@
if (USE_DEVSITE_LOCALE_OUTPUT_PATHS) {
if (libraryRoot != null) {
listDir = listDir + libraryRoot;
- data.setValue("library.root", libraryRoot);
}
}
for (String s : sorted.keySet()) {