Skip to content

Commit

Permalink
more trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Sep 6, 2024
1 parent a7ac437 commit 0e4c097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/software/amazon/awssdk/crt/CRT.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public final class CRT {
private static final String CRT_ARCH_OVERRIDE_SYSTEM_PROPERTY = "aws.crt.arch";
private static final String CRT_ARCH_OVERRIDE_ENVIRONMENT_VARIABLE = "AWS_CRT_ARCH";

private static final String CRT_LIB_NAME = "aws-crt-jni";
public static final String CRT_LIB_NAME = "aws-crt-jni";
public static final int AWS_CRT_SUCCESS = 0;
private static final CrtPlatform s_platform;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* Internal API, not for external usage.
*/
public class ExtractLib {
private static final String CRT_LIB_NAME = "aws-crt-jni";

/**
* Extract the CRT JNI library on current platform to a specific File
Expand All @@ -38,7 +37,7 @@ public static void extractLibrary(File extractFile) {
if (!extractFile.setReadable(true, true)) {
throw new CrtRuntimeException("Unable to make shared library readable by owner only");
}
String libraryName = System.mapLibraryName(CRT_LIB_NAME);
String libraryName = System.mapLibraryName(CRT.CRT_LIB_NAME);
String os = CRT.getOSIdentifier();
// open a stream to read the shared lib contents from this JAR
String libResourcePath = "/" + os + "/" + CRT.getArchIdentifier() + "/" + CRT.getCRuntime(os) + "/"
Expand Down Expand Up @@ -93,7 +92,7 @@ public static void extractLibrary(File extractFile) {
* @param path the path extracting to
*/
public static void extractLibrary(String path) {
String libraryName = System.mapLibraryName(CRT_LIB_NAME);
String libraryName = System.mapLibraryName(CRT.CRT_LIB_NAME);
File extractFile = new File(path, libraryName);
try {
extractFile.createNewFile();
Expand Down

0 comments on commit 0e4c097

Please sign in to comment.