From c24b5276d21f62d00411449a43a87daf89b989fa Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Wed, 22 Dec 2021 12:14:35 +1100 Subject: [PATCH] Config editor fails if resource dir is missing --- .../http/deployment/devmode/console/ConfigEditorProcessor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java index 919bb768ea673..ed0b3f1b99c5f 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java @@ -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;