JAL-2119 pass/resolve real help dir in link checker
authorJim Procter <jprocter@issues.jalview.org>
Thu, 8 Sep 2016 17:15:45 +0000 (18:15 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 8 Sep 2016 17:15:45 +0000 (18:15 +0100)
build.xml
utils/HelpLinksChecker.java

index 3a2b07a..7feacfb 100755 (executable)
--- a/build.xml
+++ b/build.xml
 <target name="linkcheck">
   <!-- finally, publish the help files -->
   <javac srcdir="utils" destdir="utils" includes="HelpLinksChecker.java"/>
-  <java fork="true" dir="help" classpath="utils" classname="HelpLinksChecker" failonerror="true">
-    <arg file="help"/>
+  <java fork="true" dir="${helpDir}" classpath="utils" classname="HelpLinksChecker" failonerror="true">
+    <arg file="${helpDir}"/>
     <arg value="-nointernet"/>
   </java>
 </target>
index 7b676cc..a0853a9 100644 (file)
@@ -85,7 +85,7 @@ public class HelpLinksChecker
   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);