Skip to content

Commit

Permalink
Use current thread resource context instead of system one (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Marty <[email protected]>
  • Loading branch information
devportilla and simonmarty authored Sep 19, 2022
1 parent 1522aea commit 9113696
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static Properties loadPropertiesFromConfigFile(String resourceName) {
InputStream configFile;

try {
configFile = ClassLoader.getSystemResourceAsStream(resourceName);
configFile = Thread.currentThread().getContextClassLoader().getResourceAsStream(resourceName);
if(configFile != null) {
newConfig.load(configFile);
configFile.close();
Expand Down

0 comments on commit 9113696

Please sign in to comment.