Help: avoid image regeneration on target doc-web 88/11188/3
Calixte DENIZET [Tue, 2 Apr 2013 14:12:41 +0000 (16:12 +0200)]
Change-Id: Ie4e7fa9f899d3dc42081beff6a0800e493f358e1

scilab/modules/helptools/src/java/org/scilab/modules/helptools/SciDocMain.java

index ea6ef00..fd5e7ba 100644 (file)
@@ -22,6 +22,7 @@ import org.scilab.modules.gui.utils.ScilabSwingUtilities;
 import org.scilab.modules.helptools.external.HTMLMathMLHandler;
 import org.scilab.modules.helptools.external.HTMLScilabHandler;
 import org.scilab.modules.helptools.external.HTMLSVGHandler;
+import org.scilab.modules.helptools.image.ImageConverter;
 import org.scilab.modules.helptools.image.ScilabImageConverter;
 
 /**
@@ -124,6 +125,7 @@ public final class SciDocMain {
                     converter = new HTMLDocbookTagConverter(sourceDoc, outputDirectory, sciprim, scimacro, template, version, imagedir, isToolbox, urlBase, language, HTMLDocbookTagConverter.GenerationType.HTML);
                 } else if (format.equalsIgnoreCase("web")) {
                     converter = new HTMLDocbookTagConverter(sourceDoc, outputDirectory, sciprim, scimacro, template, version, imagedir, isToolbox, urlBase, language, HTMLDocbookTagConverter.GenerationType.WEB);
+                    ImageConverter.loadMD5s(ScilabConstants.SCI.getPath() + "/modules/helptools/etc");
                 } else if (format.equalsIgnoreCase("chm")) {
                     converter = new CHMDocbookTagConverter(sourceDoc, outputDirectory, sciprim, scimacro, template, version, imagedir, conf.getWebSiteURL(), isToolbox, urlBase, language);
                 }