mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-22 05:24:27 +02:00
Fixes issue 19
This commit is contained in:
parent
68ff06883b
commit
e2fffaddb9
@ -205,8 +205,8 @@ public class LoadSnappy
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Try loading the library from org.xerial.snappy.lib.path library path */
|
// Try loading the library from org.xerial.snappy.lib.path library path */
|
||||||
String snappyNativeLibraryPath = System.getProperty("org.xerial.snappy.lib.path");
|
String snappyNativeLibraryPath = System.getProperty(KEY_SNAPPY_LIB_PATH);
|
||||||
String snappyNativeLibraryName = System.getProperty("org.xerial.snappy.lib.name");
|
String snappyNativeLibraryName = System.getProperty(KEY_SNAPPY_LIB_NAME);
|
||||||
|
|
||||||
// Resolve the library file name with a suffix (e.g., dll, .so, etc.)
|
// Resolve the library file name with a suffix (e.g., dll, .so, etc.)
|
||||||
if (snappyNativeLibraryName == null)
|
if (snappyNativeLibraryName == null)
|
||||||
@ -224,7 +224,7 @@ public class LoadSnappy
|
|||||||
|
|
||||||
if (LoadSnappy.class.getResource(snappyNativeLibraryPath + "/" + snappyNativeLibraryName) != null) {
|
if (LoadSnappy.class.getResource(snappyNativeLibraryPath + "/" + snappyNativeLibraryName) != null) {
|
||||||
// Temporary library folder. Use the value of java.io.tmpdir
|
// Temporary library folder. Use the value of java.io.tmpdir
|
||||||
String tempFolder = new File(System.getProperty(System.getProperty(KEY_SNAPPY_TEMPDIR), "java.io.tmpdir"))
|
String tempFolder = new File(System.getProperty(KEY_SNAPPY_TEMPDIR, System.getProperty("java.io.tmpdir")))
|
||||||
.getAbsolutePath();
|
.getAbsolutePath();
|
||||||
|
|
||||||
// Try extracting the library from jar
|
// Try extracting the library from jar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user