Skip to content

Commit a031511

Browse files
committed
GH-1066 - Use metadata resource's input stream rather than file.
1 parent 20f07b7 commit a031511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-modulith-runtime/src/main/java/org/springframework/modulith/runtime/autoconfigure/ApplicationModuleMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ public ResourceBasedApplicationModuleMetadata(Resource metadata) {
9999

100100
LOGGER.debug("Using application module metadata located in {}.", description);
101101

102-
try {
103-
this.document = JsonPath.parse(metadata.getFile());
102+
try (var inputStream = metadata.getInputStream()) {
103+
this.document = JsonPath.parse(inputStream);
104104
} catch (IOException e) {
105105
throw new UncheckedIOException(e);
106106
}

0 commit comments

Comments
 (0)