fix resetting of isDeploymentRequired
@@ -348,7 +348,9 @@ public class WebSite {
Set<TocItem> tocItems = tocItemsByAuxiliaryFilePath.computeIfAbsent(af.getPath(), k -> new HashSet<>());
tocItems.add(tocItem);
+ if (!auxiliaryFiles.containsKey(af.getPath()) || !auxiliaryFiles.get(af.getPath()).isDeploymentRequired()) {
auxiliaryFiles.put(af.getPath(), af);
+ }
if (auxiliaryFileListener != null) {
auxiliaryFileListener.onAuxiliaryFile(af);
}
