Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions scripts/apiml-common-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,33 @@ add_profile() {
# Common library path setup
################################################################################
if [ -z "${CMMN_LB}" ]; then
COMMON_LIB="../apiml-common-lib/bin/BOOT-INF/lib/"
if [ -d "apiml-common-lib/bin/BOOT-INF/lib/" ]; then
COMMON_LIB="apiml-common-lib/bin/BOOT-INF/lib/"
else
COMMON_LIB="../apiml-common-lib/bin/BOOT-INF/lib/"
fi
else
COMMON_LIB="${CMMN_LB}"
fi

if [ -z "${LIBRARY_PATH}" ]; then
LIBRARY_PATH="../common-java-lib/bin/"
if [ -d "common-java-lib/bin/" ]; then
LIBRARY_PATH="common-java-lib/bin/"
else
LIBRARY_PATH="../common-java-lib/bin/"
fi
fi

################################################################################
# JVM security properties
################################################################################
JVM_SECURITY_PROPERTIES=""
if [ "${JVM_SECURITY_PROPERTIES_OVERRIDE:-false}" = "true" ]; then
JVM_SECURITY_PROPERTIES="-Djava.security.properties=../apiml-common-lib/bin/jvm.security.override.properties"
if [ -f "apiml-common-lib/bin/jvm.security.override.properties" ]; then
JVM_SECURITY_PROPERTIES="-Djava.security.properties=apiml-common-lib/bin/jvm.security.override.properties"
else
JVM_SECURITY_PROPERTIES="-Djava.security.properties=../apiml-common-lib/bin/jvm.security.override.properties"
fi
fi

################################################################################
Expand Down
Loading