Skip to content

Commit 4d62f1d

Browse files
committed
Added javadoc generation
1 parent 8b455e8 commit 4d62f1d

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

modules/core/misc/java/src/java/core+DMatch.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ public DMatch(int _queryIdx, int _trainIdx, int _imgIdx, float _distance) {
4545
distance = _distance;
4646
}
4747

48-
/**
49-
* Less is better.
50-
*/
5148
public boolean lessThan(DMatch it) {
5249
return distance < it.distance;
5350
}

modules/java/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ else(ANDROID)
345345
list(APPEND step3_depends "${OpenCV_BINARY_DIR}/build.xml")
346346
347347
add_custom_command(OUTPUT "${JAR_FILE}" "${JAR_FILE}.dephelper"
348-
COMMAND ${ANT_EXECUTABLE} -q -noinput -k jar
348+
COMMAND ${ANT_EXECUTABLE} -q -noinput -k jar javadoc
349349
COMMAND ${CMAKE_COMMAND} -E touch "${JAR_FILE}.dephelper"
350350
WORKING_DIRECTORY "${OpenCV_BINARY_DIR}"
351351
DEPENDS ${step3_depends}

modules/java/build.xml.in

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<!-- process, this config is used to package the autogenerated .java -->
33
<!-- interface files into OpenCV.jar -->
44
<project name="OpenCV">
5+
56
<target name="jar">
67
<!-- This is to make a jar with a source attachment, for e.g. easy -->
78
<!-- navigation in Eclipse. See this question: -->
@@ -10,7 +11,21 @@
1011
<include name="**/*.java"/>
1112
<compilerarg line="-encoding utf-8"/>
1213
</javac>
13-
1414
<jar basedir="src" destfile="bin/@JAR_NAME@"/>
1515
</target>
16+
17+
<target name="javadoc">
18+
<tstamp>
19+
<format property="doctimestamp" pattern="EEE MMM d yyyy HH:mm:ss z"/>
20+
</tstamp>
21+
<javadoc
22+
packagenames="org.opencv.*"
23+
sourcepath="src"
24+
destdir="doc/javadoc"
25+
Windowtitle="OpenCV @OPENCV_VERSION_PLAIN@ Java documentation"
26+
Doctitle="OpenCV Java documentation (@OPENCV_VERSION@)"
27+
bottom="Generated on ${doctimestamp} / OpenCV @OPENCV_VCSVERSION@"
28+
/>
29+
</target>
30+
1631
</project>

0 commit comments

Comments
 (0)