diff --git a/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/OpenContainerPathTree.java b/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/OpenContainerPathTree.java index ecdf1ba10e483..cada0ccbddc72 100644 --- a/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/OpenContainerPathTree.java +++ b/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/OpenContainerPathTree.java @@ -93,7 +93,7 @@ public OpenPathTree open() { @Override public Collection getRoots() { - return List.of(getContainerPath()); + return List.of(getRootPath()); } @Override diff --git a/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTree.java b/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTree.java index f8e4280b4f463..57dcafeda3a54 100644 --- a/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTree.java +++ b/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTree.java @@ -83,8 +83,7 @@ static PathTree ofArchive(Path archive, PathFilter filter) { /** * The roots of the path tree. *

- * Note that for archives, it will return the path to the archive itself, - * not a path that you can browse. + * Note that you shouldn't use these roots for browsing except if the PathTree is open. * * @return roots of the path tree */