While CMAKE_JAR_CLASSES_PREFIX should still be able to provide a single prefix, it should also be changed to allow for a list of prefixes. As provided in https://bugzilla.redhat.com/attachment.cgi?id=467558 to "Bugzilla Bug #643206 - New CMake based build system for Dogtag", allow CMAKE_JAR_CLASSES_PREFIX to provide a list of prefixes rather than just a single prefix. This would possibly require changes to the following CMAKE Modules: * pki/cmake/Modules/UseJavaClassFilelist.cmake * pki/cmake/Modules/UseJava.cmake For example, CMAKE_JAR_CLASSES_PREFIX is currently utilized in "pki/base/common/src/CMakeLists.txt" to build three distinct jars: * certsrv.jar (containing all "com/netscape/certsrv/*.class") * cms.jar (containing all "com/netscape/cms/*.class") * cmscore.jar (containing all "com/netscape/cmscore/*.class") by providing individual invocations of this variable: * set(CMAKE_JAR_CLASSES_PREFIX com/netscape/certsrv) * set(CMAKE_JAR_CLASSES_PREFIX com/netscape/cms) * set(CMAKE_JAR_CLASSES_PREFIX com/netscape/cmscore) While this is works correctly for this particular case, it should be possible for a user to specify something similar to the following: * set(CMAKE_JAR_CLASSES_PREFIX com/redhat/foo com/redhat/ack ) * set(CMAKE_JAR_CLASSES_PREFIX com/redhat/bar) to produce two jars from a single component: * foo.jar (containing all "com/redhat/foo/*.class" AND "com/redhat/ack.class") * bar.jar (containing all "com/redhat/bar/*.class")
This has been implemented!