File tree Expand file tree Collapse file tree
src/main/java/dev/zarr/bloscjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104104
105105 - name : Assembly JAR
106106 run : |
107- mvn package
107+ mvn package -Dmaven.test.skip
108108
109109 - uses : actions/upload-artifact@v3
110110 with :
Original file line number Diff line number Diff line change 77import java .nio .file .StandardCopyOption ;
88
99public class Blosc {
10- private static final String OS = System .getProperty ("os.name" ).toLowerCase ();
11-
12-
1310 static {
1411 try {
1512 System .load (loadLibraryFromJarToTemp ().getAbsolutePath ());
@@ -57,12 +54,13 @@ public static byte[] decompress(byte[] src) {
5754
5855
5956 private static File loadLibraryFromJarToTemp () throws IOException {
57+ final String os = System .getProperty ("os.name" ).toLowerCase ();
6058 final String filePrefix = "libbloscjni" ;
6159 InputStream is = null ;
6260 try {
6361 String extension = ".so" ;
64- if (OS .contains ("mac" )) extension = ".dylib" ;
65- if (OS .contains ("win" )) extension = ".dll" ;
62+ if (os .contains ("mac" )) extension = ".dylib" ;
63+ if (os .contains ("win" )) extension = ".dll" ;
6664
6765 // attempt to look up the static library in the jar file
6866 String libraryFileName = filePrefix + extension ;
You can’t perform that action at this time.
0 commit comments