-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically register directories for registered resource hints
When a hint such as `graphql/*.*` is registered for resources that are looked up via classpath scanning using a pattern such as `classpath*:graphql/**/*.graphqls`, an appropriate pattern is in fact registered in the generated `resource-config.json` file for GraalVM native images; however, classpath scanning fails since GraalVM currently does not make the `graphql` directory automatically available as a classpath resource. This can be very confusing and cumbersome for users since a file such as `graphql/schema.graphqls` will not be discovered via classpath scanning even though the file is present in the native image filesystem. To address this, this commit automatically registers resource hints for enclosing directories for a registered pattern. If the GraalVM team later decides to perform automatic directory registration, we can then remove the code introduced in conjunction with this issue. Closes gh-29403
- Loading branch information
Showing
7 changed files
with
123 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.