Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically register directories for registered resource hints #29403

Closed
sbrannen opened this issue Oct 30, 2022 · 0 comments
Closed

Automatically register directories for registered resource hints #29403

sbrannen opened this issue Oct 30, 2022 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

Overview

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, we should automatically register 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.

Related Issues

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Oct 30, 2022
@sbrannen sbrannen added this to the 6.0.0-RC3 milestone Oct 30, 2022
@sbrannen sbrannen self-assigned this Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant