JAL-2119 linkcheck target. runs before build indices
authorJim Procter <jprocter@issues.jalview.org>
Thu, 8 Sep 2016 13:30:06 +0000 (14:30 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 8 Sep 2016 13:30:06 +0000 (14:30 +0100)
build.xml

index a8b8928..bb84cca 100755 (executable)
--- a/build.xml
+++ b/build.xml
     </testng>
   </target>
 
-  <target name="buildindices" depends="init, prepare" unless="help.uptodate">
+  <target name="buildindices" depends="init, prepare,linkcheck" unless="help.uptodate">
     <java classname="com.sun.java.help.search.Indexer" classpathref="build.classpath" fork="true" dir="${outputDir}/${helpDir}">
       <arg line="html" />
     </java>
     </packageset>
   </javadoc>
 </target>
+  <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">
+      <arg file="help"/>
+      <arg value="-nointernet"/>
+    </java>
+</target>
 </project>