Commit eedc41bb authored by Sven Bunge's avatar Sven Bunge

Disable doclint in Javadoc of JDK8. If the build use JDK7 or below the...

Disable doclint in Javadoc of JDK8. If the build use JDK7 or below the additional parameter raises an error - so its only set for jdk8 builds
parent f5a475b6
...@@ -467,6 +467,16 @@ ...@@ -467,6 +467,16 @@
</target> </target>
<target name="-javadoc-impl" unless="no.javadoc"> <target name="-javadoc-impl" unless="no.javadoc">
<!-- Starting with Java8 Javadoc checks for valid html. We disable it only for Java8 because older verions doesn't know the property -->
<condition property="javadoc.additionalparams" value="-Xdoclint:none">
<contains string="${ant.java.version}" substring="1.8"/>
</condition>
<condition property="javadoc.additionalparams" value="">
<not>
<contains string="${ant.java.version}" substring="1.8"/>
</not>
</condition>
<!-- Run javadoc over all source code --> <!-- Run javadoc over all source code -->
<javadoc <javadoc
packagenames="org.jivesoftware.*, org.xmpp.*" packagenames="org.jivesoftware.*, org.xmpp.*"
...@@ -474,6 +484,7 @@ ...@@ -474,6 +484,7 @@
windowtitle="Openfire ${version} Javadoc" windowtitle="Openfire ${version} Javadoc"
overview="${src.java.dir}/overview.html" overview="${src.java.dir}/overview.html"
failonerror="yes" failonerror="yes"
additionalparam="${javadoc.additionalparams}"
> >
<sourcepath> <sourcepath>
<path location="${src.java.dir}"/> <path location="${src.java.dir}"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment