details:   https://code.openbravo.com/erp/devel/pi/rev/e58d1aeff8f8
changeset: 34069:e58d1aeff8f8
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Fri May 25 12:59:25 2018 +0200
summary:   fixes issue 38630: Specify the HTML version to use when building the 
javadoc

  Starting from JDK9 it is possible to specify the HTML version to use when 
building the javadoc. In JDK10, if the format is not specified a warning is 
displayed.

  Setting HTML5 as the default format starting from JDK9.

diffstat:

 build.xml |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 640263f9e63f -r e58d1aeff8f8 build.xml
--- a/build.xml Fri May 25 11:46:38 2018 +0200
+++ b/build.xml Fri May 25 12:59:25 2018 +0200
@@ -100,6 +100,15 @@
     <equals arg1="${ant.java.version}" arg2="1.7"/>
   </condition>
 
+  <condition property="html.version" value="-html5" else="">
+    <not>
+      <or>
+        <equals arg1="${ant.java.version}" arg2="1.7"/>
+        <equals arg1="${ant.java.version}" arg2="1.8"/>
+      </or>
+    </not>
+  </condition>
+
   <condition property="calculate.core.rev">
    <istrue value="${calculate.core.revision}"/>
   </condition>
@@ -525,7 +534,7 @@
   </target>
 
   <target name="generate.java.doc">
-    <javadoc Windowtitle="${title}" access="protected" Header="${header}" 
Footer="${footer}" destdir="${build.docs}" maxmemory="1024M" failonerror="yes" 
additionalparam="${xdoclint.missing}">
+    <javadoc Windowtitle="${title}" access="protected" Header="${header}" 
Footer="${footer}" destdir="${build.docs}" maxmemory="1024M" failonerror="yes" 
additionalparam="${xdoclint.missing} ${html.version}">
       <sourcepath>
         <pathelement path="${base.src}" />
         <pathelement path="${base.src.test}/src" />

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to