git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4c1e8
)
JAL-2119 non-zero exit if any invalid links
author
Jim Procter
<jprocter@issues.jalview.org>
Thu, 8 Sep 2016 13:51:02 +0000
(14:51 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Thu, 8 Sep 2016 13:51:02 +0000
(14:51 +0100)
utils/HelpLinksChecker.java
patch
|
blob
|
history
diff --git
a/utils/HelpLinksChecker.java
b/utils/HelpLinksChecker.java
index
5ba9097
..
7b676cc
100644
(file)
--- 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);
+ }
}
/**