summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-11 07:46:38 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-15 12:07:55 -0500
commit87b5eaa5b1409bc362867e3849fe16c8f205afa9 (patch)
treea915468017558b02112e961c1a9dc2d390288cd0 /base/common
parentd66adcc04b43ac01a28c59c2649ee88685ed1849 (diff)
downloadpki-87b5eaa5b1409bc362867e3849fe16c8f205afa9.tar.gz
pki-87b5eaa5b1409bc362867e3849fe16c8f205afa9.tar.xz
pki-87b5eaa5b1409bc362867e3849fe16c8f205afa9.zip
Added pki-client.jar.
A new pki-client.jar has been created to package the REST client and CLI classes. Ticket #215
Diffstat (limited to 'base/common')
-rw-r--r--base/common/src/CMakeLists.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/base/common/src/CMakeLists.txt b/base/common/src/CMakeLists.txt
index f93083d79..fc6204b2a 100644
--- a/base/common/src/CMakeLists.txt
+++ b/base/common/src/CMakeLists.txt
@@ -173,6 +173,7 @@ install(
set(PKI_CERTSRV_JAR ${CMAKE_BINARY_DIR}/dist/pki-certsrv.jar CACHE INTERNAL "pki-certsrv jar file")
+
# build pki-cms
javac(pki-cms-classes
SOURCES
@@ -333,3 +334,35 @@ install(
)
set(PKI_CMSBUNDLE_JAR ${CMAKE_BINARY_DIR}/dist/pki-cmsbundle.jar INTERNAL "pki-cmsbundle jar file")
+
+
+# build pki-client
+jar(pki-client-jar
+ CREATE
+ ${CMAKE_BINARY_DIR}/dist/pki-client-${APPLICATION_VERSION}.jar
+ INPUT_DIR
+ ${CMAKE_BINARY_DIR}/classes
+ FILES
+ com/netscape/cms/client/*.class
+ DEPENDS
+ pki-cms
+)
+
+link(pki-client
+ SOURCE
+ ${CMAKE_BINARY_DIR}/dist/pki-client.jar
+ DEST
+ pki-client-${APPLICATION_VERSION}.jar
+ DEPENDS
+ pki-client-jar
+)
+
+install(
+ FILES
+ ${CMAKE_BINARY_DIR}/dist/pki-client.jar
+ ${CMAKE_BINARY_DIR}/dist/pki-client-${APPLICATION_VERSION}.jar
+ DESTINATION
+ ${JAVA_JAR_INSTALL_DIR}/pki
+)
+
+set(PKI_CLIENT_JAR ${CMAKE_BINARY_DIR}/dist/pki-client.jar CACHE INTERNAL "pki-client jar file")