File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/main/java/com/securenative/config Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 66 <groupId >com.securenative.java</groupId >
77 <artifactId >securenative-java</artifactId >
88 <packaging >jar</packaging >
9- <version >0.5.0 </version >
9+ <version >0.5.1 </version >
1010 <url >https://github.com/securenative/securenative-java</url >
1111
1212 <name >${project.groupId} :${project.artifactId} :${project.version} </name >
Original file line number Diff line number Diff line change 66import com .securenative .enums .FailoverStrategy ;
77import com .securenative .utils .Utils ;
88
9+ import java .io .FileInputStream ;
10+ import java .io .FileNotFoundException ;
11+ import java .io .IOException ;
912import java .io .InputStream ;
1013import java .net .URL ;
1114import java .nio .file .Path ;
@@ -69,7 +72,15 @@ public static SecureNativeOptions loadConfig() {
6972 }
7073
7174 public static SecureNativeOptions loadConfig (Path path ) {
72- Properties properties = readResourceFile (path .toString ());
75+ Properties properties = new Properties ();
76+ InputStream input ;
77+ try {
78+ input = new FileInputStream (path .toString ());
79+ properties .load (input );
80+ } catch (IOException ignore ) {
81+
82+ }
83+
7384 return getOptions (properties );
7485 }
7586
You can’t perform that action at this time.
0 commit comments