summaryrefslogtreecommitdiffstats
path: root/base/console
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-30 16:28:45 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-09-04 09:45:52 -0500
commit1637107a208bc4ea465671ba0d9539548b4f1146 (patch)
treecc74e9ac0c4c4b13d99bde808c536d4e99ce40e1 /base/console
parentcd9b0277016c37724edbdc5fe91d9b745970a044 (diff)
downloadpki-1637107a208bc4ea465671ba0d9539548b4f1146.tar.gz
pki-1637107a208bc4ea465671ba0d9539548b4f1146.tar.xz
pki-1637107a208bc4ea465671ba0d9539548b4f1146.zip
Removed duplicate common classes in pki-console.jar.
The pki-console has been modified to depend on pki-base. This way it's no longer necessary to include duplicate common classes in pki-console. Ticket #113
Diffstat (limited to 'base/console')
-rw-r--r--base/console/src/CMakeLists.txt32
-rwxr-xr-xbase/console/templates/pki_console_wrapper1
2 files changed, 12 insertions, 21 deletions
diff --git a/base/console/src/CMakeLists.txt b/base/console/src/CMakeLists.txt
index ee7c25b58..335411e39 100644
--- a/base/console/src/CMakeLists.txt
+++ b/base/console/src/CMakeLists.txt
@@ -9,6 +9,14 @@ find_file(PKI_NSUTIL_JAR
/usr/share/java/pki
)
+find_file(PKI_CERTSRV_JAR
+ NAMES
+ pki-certsrv.jar
+ PATHS
+ ${JAVA_LIB_INSTALL_DIR}
+ /usr/share/java/pki
+)
+
# '/usr/share/java' jars
find_file(BASE_JAR
@@ -76,21 +84,6 @@ find_file(COMMONS_CODEC_JAR
/usr/share/java
)
-# build common classes
-javac(pki-common-classes
- SOURCE_DIR
- ${CMAKE_SOURCE_DIR}/base/common/src
- SOURCES
- com/netscape/certsrv/common/*.java
- CLASSPATH
- ${BASE_JAR} ${LDAPJDK_JAR} ${MMC_JAR}
- ${MMC_EN_JAR} ${NMCLF_JAR} ${NMCLF_EN_JAR}
- ${PKI_NSUTIL_JAR}
- ${JSS_JAR} ${COMMONS_CODEC_JAR}
- OUTPUT_DIR
- ${CMAKE_BINARY_DIR}/classes
-)
-
# build console classes
javac(pki-console-classes
SOURCES
@@ -99,15 +92,13 @@ javac(pki-console-classes
${CMAKE_BINARY_DIR}/classes
${BASE_JAR} ${LDAPJDK_JAR} ${MMC_JAR}
${MMC_EN_JAR} ${NMCLF_JAR} ${NMCLF_EN_JAR}
- ${PKI_NSUTIL_JAR}
+ ${PKI_NSUTIL_JAR} ${PKI_CERTSRV_JAR}
${JSS_JAR} ${COMMONS_CODEC_JAR}
OUTPUT_DIR
${CMAKE_BINARY_DIR}/classes
- DEPENDS
- pki-common-classes
)
-# package common and console classes and resources
+# package console classes and resources
jar(pki-console-jar
CREATE
${CMAKE_BINARY_DIR}/dist/pki-console-${APPLICATION_VERSION}.jar
@@ -115,13 +106,12 @@ jar(pki-console-jar
${CMAKE_BINARY_DIR}/classes
FILES
com/netscape/admin/certsrv/*.class
- com/netscape/certsrv/common/*.class
INPUT_DIR
${CMAKE_CURRENT_SOURCE_DIR}
FILES
com/netscape/admin/certsrv/images/*.gif
DEPENDS
- pki-console-classes pki-common-classes
+ pki-console-classes
)
link(pki-console
diff --git a/base/console/templates/pki_console_wrapper b/base/console/templates/pki_console_wrapper
index eec4725b6..b1b9593b2 100755
--- a/base/console/templates/pki_console_wrapper
+++ b/base/console/templates/pki_console_wrapper
@@ -152,6 +152,7 @@ CP=/usr/share/java/idm-console-mcc.jar:${CP}
CP=/usr/share/java/idm-console-mcc_en.jar:${CP}
CP=/usr/share/java/idm-console-base.jar:${CP}
CP=/usr/share/java/389-console_en.jar:${CP}
+CP=/usr/share/java/${PRODUCT}/pki-certsrv.jar:${CP}
CP=/usr/share/java/${PRODUCT}/pki-console-theme.jar:${CP}
CP=/usr/share/java/${PRODUCT}/pki-console.jar:${CP}
export CP