Added javadoc generation
authorMaksim Shabunin <maksim.shabunin@gmail.com>
Wed, 5 Apr 2017 14:50:46 +0000 (17:50 +0300)
committerMaksim Shabunin <maksim.shabunin@gmail.com>
Wed, 5 Apr 2017 15:18:39 +0000 (18:18 +0300)
modules/core/misc/java/src/java/core+DMatch.java
modules/java/CMakeLists.txt
modules/java/build.xml.in

index 12bd86e..db44d9a 100644 (file)
@@ -45,9 +45,6 @@ public class DMatch {
         distance = _distance;
     }
 
-    /**
-     * Less is better.
-     */
     public boolean lessThan(DMatch it) {
         return distance < it.distance;
     }
index ed92e05..7994332 100644 (file)
@@ -345,7 +345,7 @@ else(ANDROID)
   list(APPEND step3_depends "${OpenCV_BINARY_DIR}/build.xml")
 
   add_custom_command(OUTPUT "${JAR_FILE}" "${JAR_FILE}.dephelper"
-                     COMMAND ${ANT_EXECUTABLE} -q -noinput -k jar
+                     COMMAND ${ANT_EXECUTABLE} -q -noinput -k jar javadoc
                      COMMAND ${CMAKE_COMMAND} -E touch "${JAR_FILE}.dephelper"
                      WORKING_DIRECTORY "${OpenCV_BINARY_DIR}"
                      DEPENDS ${step3_depends}
index c1c1854..954ff62 100644 (file)
@@ -2,6 +2,7 @@
 <!-- process, this config is used to package the autogenerated .java -->
 <!-- interface files into OpenCV.jar -->
 <project name="OpenCV">
+
   <target name="jar">
     <!-- This is to make a jar with a source attachment, for e.g. easy -->
     <!-- navigation in Eclipse. See this question: -->
       <include name="**/*.java"/>
       <compilerarg line="-encoding utf-8"/>
     </javac>
-
     <jar basedir="src" destfile="bin/@JAR_NAME@"/>
   </target>
+
+  <target name="javadoc">
+    <tstamp>
+      <format property="doctimestamp" pattern="EEE MMM d yyyy HH:mm:ss z"/>
+    </tstamp>
+    <javadoc
+      packagenames="org.opencv.*"
+      sourcepath="src"
+      destdir="doc/javadoc"
+      Windowtitle="OpenCV @OPENCV_VERSION_PLAIN@ Java documentation"
+      Doctitle="OpenCV Java documentation (@OPENCV_VERSION@)"
+      bottom="Generated on ${doctimestamp} / OpenCV @OPENCV_VCSVERSION@"
+      />
+  </target>
+
 </project>