Description: Link the javadoc against the system javadoc.
Author: Niels Thykier <niels@thykier.net>

--- a/build.xml
+++ b/build.xml
@@ -466,17 +466,27 @@
       windowtitle="FreeMarker ${version} API"
       classpath="build/classes"
       classpathref="ivy.dep"
-      failonerror="true"
+      failonerror="false"
       charset="UTF-8"
       docencoding="UTF-8"
       locale="en_US"
     >
-      <link href="http://docs.oracle.com/javase/8/docs/api/"/>
+      <link href="/usr/share/doc/default-jdk-doc/api/" />
+      <link href="/usr/share/doc/libdom4j-java-doc/apidocs/" />
+      <link href="/usr/share/doc/rhino/api/" />
+      <link href="/usr/share/doc/jython-doc/api-html/" />
+      <link href="/usr/share/doc/liblog4j1.2-java/api/" />
+      <link href="/usr/share/doc/libjaxen-java/api/" />
+      <link href="/usr/share/doc/libjdom1-java/api/" />
+      <link href="/usr/share/doc/libxerces2-java-doc/api/" />
+      <link href="/usr/share/doc/libcommons-jxpath-java-doc/api/" />
+      <link href="/usr/share/doc/libcommons-jxpath-java-doc/api/" />
+      <link href="/usr/share/doc/libxalan2-java/api/" />
     </javadoc>
     <delete dir="build/javadoc-sources" />
   </target>
 
-  <target name="javadoc" depends="_rawJavadoc, _fixJDK8JavadocCSS" description="Build the JavaDocs" />
+  <target name="javadoc" depends="_rawJavadoc" description="Build the JavaDocs" />
   
   <target name="_fixJDK8JavadocCSS" depends="_rawJavadoc" if="atLeastJDK8">
     <property name="file" value="build/api/stylesheet.css" />
