docs: Also create javadoc for generated Kind.java (#7624)
authorMathias Preiner <mathias.preiner@gmail.com>
Wed, 10 Nov 2021 03:42:31 +0000 (19:42 -0800)
committerGitHub <noreply@github.com>
Wed, 10 Nov 2021 03:42:31 +0000 (03:42 +0000)
docs/api/java/CMakeLists.txt

index 54a8dc54cf68a778cb631b7a2ee5cd5f2e92dfb5..6df794435d71dda5de8daefb738d40f3d198fe24 100644 (file)
@@ -23,13 +23,15 @@ if(BUILD_BINDINGS_JAVA)
   # used to trigger the rebuild
   set(JAVADOC_INDEX_FILE ${JAVADOC_OUTPUT_DIR}/index.html)
 
+  get_target_property(CVC5_JAR_FILE cvc5jar JAR_FILE)
   add_custom_command(
     OUTPUT "${JAVADOC_INDEX_FILE}"
     COMMAND
       ${Java_JAVADOC_EXECUTABLE} io.github.cvc5.api
-      -sourcepath ${CMAKE_SOURCE_DIR}/src/api/java/
+      -sourcepath ${CMAKE_SOURCE_DIR}/src/api/java/:${CMAKE_BINARY_DIR}/src/api/java/
+      -Xdoclint:none
       -d ${JAVADOC_OUTPUT_DIR}
-      -cp ${CMAKE_BINARY_DIR}/src/api/java/cvc5.jar
+      -cp ${CVC5_JAR_FILE}
       -notimestamp
     COMMAND find ${JAVADOC_OUTPUT_DIR} -type f -exec sed -i'orig' 's/<!-- Generated by javadoc [^>]* -->//' {} "\;"
     COMMAND find ${SPHINX_GH_OUTPUT_DIR} -name '*orig' -delete