Skip to content

Commit

Permalink
Merge pull request #22462 from stuartwdouglas/config-editor-res-dir
Browse files Browse the repository at this point in the history
Config editor fails if resource dir is missing
  • Loading branch information
geoand authored Dec 22, 2021
2 parents af5230f + c24b527 commit 18f17bc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ private static Path getConfigPath() throws IOException {
Path path = resourcesDir.get(0);
Path configPath = path.resolve("application.properties");
if (!Files.exists(configPath)) {
Files.createDirectories(configPath.getParent());
configPath = Files.createFile(path.resolve("application.properties"));
}
return configPath;
Expand Down

0 comments on commit 18f17bc

Please sign in to comment.