Skip to content

Commit

Permalink
Fix pki-tomcat.jar and pki-tomcat-9.0.jar
Browse files Browse the repository at this point in the history
The CMake scripts for pki-tomcat.jar and pki-tomcat-9.0.jar have
been updated to use separate build folders. The Azure pipelines
have been updated to verify the content of the JAR files.
  • Loading branch information
edewata committed Jul 6, 2023
1 parent bf3722d commit a91d351
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
40 changes: 40 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,38 @@ jobs:
diff cmake.out maven.out
displayName: Compare pki-tools.jar
- script: |
docker exec runner \
jar tvf /root/build/dist/pki-tomcat.jar | awk '{print $8;}' | grep -v '/$' | sort | tee cmake.out
docker exec runner \
jar tvf /root/src/base/tomcat/target/pki-tomcat.jar | awk '{print $8;}' | grep -v -E '^META-INF/maven/|/$' | sort > maven.out
diff cmake.out maven.out
displayName: Compare pki-tomcat.jar
- script: |
docker exec runner \
jar tvf /root/build/dist/pki-tomcat-9.0.jar | awk '{print $8;}' | grep -v '/$' | sort | tee cmake.out
docker exec runner \
jar tvf /root/src/base/tomcat-9.0/target/pki-tomcat-9.0.jar | awk '{print $8;}' | grep -v -E '^META-INF/maven/|/$' | sort > maven.out
diff cmake.out maven.out
displayName: Compare pki-tomcat-9.0.jar
- script: |
docker exec runner \
jar tvf /root/build/dist/pki-server.jar | awk '{print $8;}' | grep -v '/$' | sort | tee cmake.out
docker exec runner \
jar tvf /root/src/base/server/target/pki-server.jar | awk '{print $8;}' | grep -v -E '^META-INF/maven/|/$' | sort > maven.out
diff cmake.out maven.out
displayName: Compare pki-server.jar
- script: |
docker exec runner \
jar tvf /root/build/dist/pki-server-webapp.jar | awk '{print $8;}' | grep -v '/$' | sort | tee cmake.out
docker exec runner \
jar tvf /root/src/base/server-webapp/target/pki-server-webapp.jar | awk '{print $8;}' | grep -v -E '^META-INF/maven/|/$' | sort > maven.out
diff cmake.out maven.out
displayName: Compare pki-server-webapp.jar
- script: |
docker exec runner \
jar tvf /root/build/dist/pki-ca.jar | awk '{print $8;}' | grep -v '/$' | sort | tee cmake.out
Expand Down Expand Up @@ -195,6 +227,14 @@ jobs:
diff cmake.out maven.out
displayName: Compare pki-acme.jar
- script: |
docker exec runner \
jar tvf /root/build/dist/pki-est.jar | awk '{print $8;}' | grep -v '/$' | sort | tee cmake.out
docker exec runner \
jar tvf /root/src/base/est/target/pki-est.jar | awk '{print $8;}' | grep -v -E '^META-INF/maven/|/$' | sort > maven.out
diff cmake.out maven.out
displayName: Compare pki-est.jar
- script: |
docker exec runner \
/root/src/build.sh \
Expand Down
4 changes: 2 additions & 2 deletions base/tomcat-9.0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ javac(pki-tomcat-9.0-classes
${PKI_COMMON_JAR}
${PKI_TOMCAT_JAR}
OUTPUT_DIR
${CMAKE_BINARY_DIR}/classes
${CMAKE_CURRENT_BINARY_DIR}/classes
DEPENDS
pki-tomcat-jar
)
Expand All @@ -38,7 +38,7 @@ jar(pki-tomcat-9.0-jar
PARAMS
${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.MF
INPUT_DIR
${CMAKE_BINARY_DIR}/classes
${CMAKE_CURRENT_BINARY_DIR}/classes
DEPENDS
pki-tomcat-9.0-classes
)
Expand Down
4 changes: 2 additions & 2 deletions base/tomcat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ javac(pki-tomcat-classes
${TOMCATJSS_TOMCAT_9_0_JAR}
${PKI_COMMON_JAR}
OUTPUT_DIR
${CMAKE_BINARY_DIR}/classes
${CMAKE_CURRENT_BINARY_DIR}/classes
DEPENDS
pki-common-jar
)
Expand All @@ -37,7 +37,7 @@ jar(pki-tomcat-jar
PARAMS
${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.MF
INPUT_DIR
${CMAKE_BINARY_DIR}/classes
${CMAKE_CURRENT_BINARY_DIR}/classes
DEPENDS
pki-tomcat-classes
)
Expand Down

0 comments on commit a91d351

Please sign in to comment.