#62 Find Java sources automatically
Closed: Fixed None Opened 12 years ago by edewata.

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:

  • c70859039d60db53a1966f3b1781defd032a4062
  • a513ee42025af8bba22e6efb3e2fe268076fbd28
  • 4e0d7df796baf446edcd89ea58e77c76c2ffd986
  • 9ead1240301bafea64e791cf59e28e1f74796f5c
  • af66df4e028cac52d75dd5a585a16426083bd5af
  • 4f7af51285d9b8991929d7e01b3ae6a980e53eb5
  • 32b2670ba16084896e10ae27f7ce7b50313e375a

Metadata Update from @edewata:
- Issue assigned to edewata
- Issue set to the milestone: Dogtag 10.0.0.a1

7 years ago

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.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata