From: Jim Procter Date: Thu, 8 Sep 2016 13:51:02 +0000 (+0100) Subject: JAL-2119 non-zero exit if any invalid links X-Git-Tag: Release_2_10_0~47^2~2^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=63614bcb84c751b42a3152445e763bea51e2792c;p=jalview.git JAL-2119 non-zero exit if any invalid links --- diff --git a/utils/HelpLinksChecker.java b/utils/HelpLinksChecker.java index 5ba9097..7b676cc 100644 --- a/utils/HelpLinksChecker.java +++ b/utils/HelpLinksChecker.java @@ -207,7 +207,11 @@ public class HelpLinksChecker System.out .println("External links not verified as internet not available"); } - + if (invalidInternalHrefCount > 0 || invalidExternalHrefCount > 0 + || invalidImageCount > 0 || invalidAnchorRefCount > 0) + { + System.exit(1); + } } /**