The wrapper script for legacy CLIs has been updated to use
java.ext.dirs to specify the client library folder instead
of a class path variable containing individual JAR files.
The same mechanism is already in use in PKI CLI.

--
Endi S. Dewata
>From d5aa7bb61828166d2e57fe1960c8d9d675426b5b Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <[email protected]>
Date: Mon, 23 Jan 2017 18:45:54 +0100
Subject: [PATCH] Updated wrapper script for legacy CLIs.

The wrapper script for legacy CLIs has been updated to use
java.ext.dirs to specify the client library folder instead
of a class path variable containing individual JAR files.
The same mechanism is already in use in PKI CLI.
---
 .../templates/pki_java_command_wrapper.in          | 24 +++-------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/base/java-tools/templates/pki_java_command_wrapper.in b/base/java-tools/templates/pki_java_command_wrapper.in
index fcf3b3a2e1c433cb1ea5bbbd26e4a34290bdacd0..696f661b3a60ba1b16962df0661b3a6a45fd6ad4 100644
--- a/base/java-tools/templates/pki_java_command_wrapper.in
+++ b/base/java-tools/templates/pki_java_command_wrapper.in
@@ -112,30 +112,12 @@ fi
 
 
 ###############################################################################
-##  (5) Set the CP environment variable to determine the search              ##
-##      order this command wrapper uses to find jar files.                   ##
-###############################################################################
-
-CP=${JNI_JAR_DIR}/jss4.jar
-CP=/usr/share/java/commons-cli.jar:${CP}
-CP=/usr/share/java/commons-codec.jar:${CP}
-CP=/usr/share/java/commons-io.jar:${CP}
-CP=/usr/share/java/commons-logging.jar:${CP}
-CP=/usr/share/java/httpcomponents/httpclient.jar:${CP}
-CP=/usr/share/java/httpcomponents/httpcore.jar:${CP}
-CP=/usr/share/java/ldapjdk.jar:${CP}
-CP=/usr/share/java/${PRODUCT}/pki-nsutil.jar:${CP}
-CP=/usr/share/java/${PRODUCT}/pki-cmsutil.jar:${CP}
-CP=/usr/share/java/${PRODUCT}/pki-tools.jar:${CP}
-export CP
-
-###############################################################################
-##  (6) Execute the java command specified by this java command wrapper      ##
-##      based upon the preset LD_LIBRARY_PATH and CP environment variables.  ##
+##  (5) Execute the java command specified by this java command wrapper      ##
+##      based upon the LD_LIBRARY_PATH and PKI_LIB environment variables.    ##
 ###############################################################################
 
 ${JAVA} ${JAVA_OPTIONS} \
-  -cp ${CP} \
+  -Djava.ext.dirs=${PKI_LIB} \
   -Djava.util.logging.config.file=${LOGGING_CONFIG} \
   com.netscape.cmstools.${COMMAND} "$@"
 
-- 
2.5.5

_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to