From: Ben Soares Date: Tue, 4 Jun 2019 14:38:46 +0000 (+0100) Subject: JAL-3287 adjustment to HelpLinksChecker X-Git-Tag: Release_2_11_1_0~52^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1201d0ab19ce83a8dce3652ddd06a6098019be5b;p=jalview.git JAL-3287 adjustment to HelpLinksChecker --- diff --git a/utils/HelpLinksChecker.java b/utils/HelpLinksChecker.java index 3b64180..dee5322 100644 --- a/utils/HelpLinksChecker.java +++ b/utils/HelpLinksChecker.java @@ -282,10 +282,10 @@ public class HelpLinksChecker implements BufferedLineReader.LineCleaner else { internalHrefCount++; - String relFile = System.getProperty("os.name").indexOf("Win") > -1 ? href.replace('/', '\\') : href; + String relFile = System.getProperty("os.name").indexOf("Win") > -1 ? href.replace("/", File.separator) : href; File hrefFile = href.equals("") ? htmlFile : new File(htmlFolder, href); - if (hrefFile != htmlFile && !fileExists(hrefFile, href)) + if (hrefFile != htmlFile && !fileExists(hrefFile, relFile)) { badLink = true; invalidInternalHrefCount++;