JAL-2119 non-zero exit if any invalid links
authorJim Procter <jprocter@issues.jalview.org>
Thu, 8 Sep 2016 13:51:02 +0000 (14:51 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 8 Sep 2016 13:51:02 +0000 (14:51 +0100)
utils/HelpLinksChecker.java

index 5ba9097..7b676cc 100644 (file)
@@ -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);
+    }
   }
 
   /**