diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-09-25 00:43:31 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-09-28 09:42:24 -0500 |
commit | 9368ef42cea4e1e46f22628cffaa29fba66cfec6 (patch) | |
tree | cef737e524f9d19f919a5f3e260cc4bad6b35121 /base/ca | |
parent | 854ecce0fc312e65804d84041cbc93b17cce88a5 (diff) | |
download | pki-9368ef42cea4e1e46f22628cffaa29fba66cfec6.tar.gz pki-9368ef42cea4e1e46f22628cffaa29fba66cfec6.tar.xz pki-9368ef42cea4e1e46f22628cffaa29fba66cfec6.zip |
Added VERSION file.
The CMake scripts have been modified to store the version number
in /usr/share/pki/VERSION and in JAR manifest files. These files
can be read by PKI applications to obtain the version number
without having to query the RPM database.
Fixed warnings in Java.cmake file.
Ticket #339
Diffstat (limited to 'base/ca')
-rw-r--r-- | base/ca/src/CMakeLists.txt | 9 | ||||
-rw-r--r-- | base/ca/src/pki-ca.mf | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/base/ca/src/CMakeLists.txt b/base/ca/src/CMakeLists.txt index 09cea8ac2..9bfbb23a2 100644 --- a/base/ca/src/CMakeLists.txt +++ b/base/ca/src/CMakeLists.txt @@ -46,9 +46,18 @@ javac(pki-ca-classes symkey pki-nsutil pki-cmsutil pki-certsrv pki-cms pki-cmscore ) +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/pki-ca.mf + ${CMAKE_CURRENT_BINARY_DIR}/pki-ca.mf +) + jar(pki-ca-jar CREATE ${CMAKE_BINARY_DIR}/dist/pki-ca-${APPLICATION_VERSION}.jar + OPTIONS + m + PARAMS + ${CMAKE_CURRENT_BINARY_DIR}/pki-ca.mf INPUT_DIR ${CMAKE_BINARY_DIR}/classes FILES diff --git a/base/ca/src/pki-ca.mf b/base/ca/src/pki-ca.mf new file mode 100644 index 000000000..056f7bc08 --- /dev/null +++ b/base/ca/src/pki-ca.mf @@ -0,0 +1,2 @@ +Name: pki-ca +Implementation-Version: ${APPLICATION_VERSION}
\ No newline at end of file |