Currently to compile Java in CMake the source codes have to be listed explicitly as follows:
set(pki-certsrv_java_SRCS com/netscape/certsrv/apps/ICommandQueue.java com/netscape/certsrv/apps/CMS.java com/netscape/certsrv/apps/ICMSEngine.java ... )
Since there are many files this could be a maintenance issue. Ideally the list should be generated with a CMake function, for example:
file(GLOB_RECURSE pki-certsrv_java_SRCS RELATIVE . PATTERN *.java )
There's a note in CMake docs (http://cmake.org/cmake/help/cmake-2-8-docs.html#command:file) that warns against it:
We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate.
However, this not might not be applicable to Java since javac will handle that automatically.
master:
Metadata Update from @edewata: - Issue assigned to edewata - Issue set to the milestone: Dogtag 10.0.0.a1
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/634
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.