Skip to content

Commit

Permalink
Merge branch '2.1' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanielr committed Jan 8, 2025
2 parents a47e4b8 + 3d0bea9 commit 4bd6dea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.commons.configuration2.MapConfiguration;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.apache.commons.configuration2.ex.ConfigurationException;
import org.apache.commons.configuration2.io.FileHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -211,8 +212,9 @@ private SiteConfiguration(Map<String,String> config) {
private static AbstractConfiguration getPropsFileConfig(URL accumuloPropsLocation) {
var config = new PropertiesConfiguration();
if (accumuloPropsLocation != null) {
var fileHandler = new FileHandler(config);
try (var reader = new InputStreamReader(accumuloPropsLocation.openStream(), UTF_8)) {
config.read(reader);
fileHandler.load(reader);
} catch (ConfigurationException | IOException e) {
throw new IllegalArgumentException(e);
}
Expand Down

0 comments on commit 4bd6dea

Please sign in to comment.