Add XAP_LIBRARY_PATH and XAP_LIBRARY_PATH_EXT environment variables to override/extend java.library.path

Description

Customer needs to set LD_LIBRARY_PATH. Prior to XAP 14.2, one could set EXT_LD_LIBRARY_PATH.

If LD_LIBRARY_PATH or EXT__LD_LIBRARY_PATH are set, they don't get picked up.

If -Djava.library.path is set, there are 2 of these System properties set, but XAP does not seem to be able to pick up the one set by customer. The first one is set to <XAP_HOME>/lib/platform/native directory.
========

Solution: Added two new env vars:

if $XAP_LIBRARY_PATH is set, its value is set directly in java.library.path (overrides GigaSpaces defaults).

Otherwise, if $XAP_LIBRARY_PATH_EXT is set, its value is appended to the default lib/platform/native, and the concatenated result is set in java.library.path

Workaround

None

Acceptance Test

Verified manually

Status

Assignee

Niv Ingberg

Reporter

Dixson Huie

Labels

None

Priority

Medium

SalesForce Case ID

12404

Fix versions

Commitment Version/s

None

Due date

None

Product

None

Edition

Premium

Platform

All
Configure