summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/TestLFRingBuffer01.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-08-18 01:40:39 +0200
committerSven Gothel <[email protected]>2019-08-18 01:40:39 +0200
commitf54e4fbaebfec36bd3b523dc4e23f744e8e6a4ef (patch)
treeff91417896a7b17b04cb43dd9a9cbbcfc3531458 /src/junit/com/jogamp/common/util/TestLFRingBuffer01.java
parent5aee782592a5ef038dfb79c7b2af5ddab81c0a21 (diff)
Bug 1363: Java 11: Refine 'java.home.dir' and 'java.lib.dir.platform' setup for traditional layout and JEP 220(Java 9+)
JEP 220 states it is now optional to use the <arch> subfolder in 'lib' to store native libraries, i.e. 'lib/<arch>/libjava.so' can be flattened to 'lib/libjava.so'. Further the jre subfolder is no more used according to the JEP 220, however, it can be used. Therefor we scan for 'java.home.dir' in the following order: - if '<java.home>/../jre' exists, i.e. we are within the 'jre' folder, use '<java.home>/..'. - otherwise assume <java.home> reflect the flattened actual base folder and use it as is. We scan for 'java.lib.dir.platform' in the following order: - if exists <java.home>/jre/lib/i386/libjava.so -> <java.home>/jre/lib/i386 - if exists <java.home>/lib/i386/libjava.so -> <java.home>/lib/i386 - defaults to flattened <java.home>/lib This way we keep the historical arch information for each platform and stay most flexible for any SDK build layout.
Diffstat (limited to 'src/junit/com/jogamp/common/util/TestLFRingBuffer01.java')
0 files changed, 0 insertions, 0 deletions