void checkLinks(String helpDirectoryPath) throws IOException
{
System.out.println("Checking help file links");
- File helpFolder = new File(helpDirectoryPath);
+ File helpFolder = new File(helpDirectoryPath).getCanonicalFile();
if (!helpFolder.exists())
{
System.out.println("Can't find " + helpDirectoryPath);
System.out
.println("External links not verified as internet not available");
}
-
+ if (invalidInternalHrefCount > 0 || invalidExternalHrefCount > 0
+ || invalidImageCount > 0 || invalidAnchorRefCount > 0)
+ {
+ System.exit(1);
+ }
}
/**