Skip to content
Snippets Groups Projects
Commit 0a35a176 authored by Georg Graßnick's avatar Georg Graßnick :thinking:
Browse files

Fix recursion of inlcudes

parent c683038a
No related branches found
No related tags found
1 merge request!36Bug/file path issues
......@@ -136,7 +136,7 @@ public final class JavaPropertiesConfigurationParser extends ConfigurationParser
mLogger.debug("Prepare recursive parsing of properties file in the file system for file \"{}\"", newPathString);
try (InputStream is = new BufferedInputStream(new FileInputStream(newPathString))) {
parse(is, newPath.toUri().toURL());
parse(is, UrlHelper.getParentUrl(newPath.toUri().toURL()));
} catch (IOException e) {
throw new ConfigurationParsingException("Could not open include file", e);
}
......@@ -163,7 +163,7 @@ public final class JavaPropertiesConfigurationParser extends ConfigurationParser
mLogger.debug("Prepare recursive parsing of properties file in the java resources at \"{}\"", newUrl);
try (InputStream is = newUrl.openStream()) {
parse(is, newUrl);
parse(is, UrlHelper.getParentUrl(newUrl));
} catch (IOException e) {
throw new ConfigurationParsingException("Could not open include resource", e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment