-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously CMake stored both generic Tomcat and Tomcat 9.0-specific classes into a single JAR file. To simplify the transition to Maven the CMake scripts have been updated to store those classes into separate JAR files. PKI server code has also been updated to use both JAR files. Currently PKI code has direct dependencies on Tomcat 9.0 classes. To simplify the transition to newer Tomcat versions the code needs to be refactored to use generic Tomcat classes at compile time, then use version-specific classes at runtime. This can be done separately in the future.
- Loading branch information
Showing
16 changed files
with
102 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Name: pki-tomcat | ||
Name: pki-tomcat-9.0 | ||
Specification-Version: ${APPLICATION_VERSION} | ||
Implementation-Version: ${IMPL_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
project(pki-tomcat) | ||
|
||
javac(pki-tomcat-classes | ||
SOURCES | ||
src/main/java/*.java | ||
CLASSPATH | ||
${SERVLET_JAR} | ||
${JAXRS_API_JAR} | ||
${JASPIC_API_JAR} | ||
${COMMONS_LANG3_JAR} | ||
${TOMCAT_API_JAR} ${TOMCAT_CATALINA_JAR} ${TOMCAT_COYOTE_JAR} ${TOMCAT_UTIL_SCAN_JAR} | ||
${SLF4J_API_JAR} | ||
${JSS_JAR} | ||
${TOMCATJSS_CORE_JAR} | ||
${TOMCATJSS_TOMCAT_9_0_JAR} | ||
${PKI_COMMON_JAR} | ||
OUTPUT_DIR | ||
${CMAKE_BINARY_DIR}/classes | ||
DEPENDS | ||
pki-common-jar | ||
) | ||
|
||
set(PKI_TOMCAT_JAR ${CMAKE_BINARY_DIR}/dist/pki-tomcat.jar | ||
CACHE INTERNAL "pki-tomcat.jar" | ||
) | ||
|
||
configure_file( | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/main/resources/META-INF/MANIFEST.MF | ||
${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.MF | ||
) | ||
|
||
jar(pki-tomcat-jar | ||
CREATE | ||
${PKI_TOMCAT_JAR} | ||
OPTIONS | ||
m | ||
PARAMS | ||
${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.MF | ||
INPUT_DIR | ||
${CMAKE_BINARY_DIR}/classes | ||
DEPENDS | ||
pki-tomcat-classes | ||
) | ||
|
||
install( | ||
FILES | ||
${PKI_TOMCAT_JAR} | ||
DESTINATION | ||
${JAVA_JAR_INSTALL_DIR}/pki | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Name: pki-tomcat | ||
Specification-Version: ${APPLICATION_VERSION} | ||
Implementation-Version: ${IMPL_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters