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

add :resource multimethod for ring.util.response/resource-data #370

Open
yogthos opened this issue May 14, 2019 · 2 comments
Open

add :resource multimethod for ring.util.response/resource-data #370

yogthos opened this issue May 14, 2019 · 2 comments

Comments

@yogthos
Copy link

yogthos commented May 14, 2019

When loading resources with GraalVM the protocol returned by the java.net.URL is "resource" instead of "jar". Mirroring the :jar resource-data multimethod would allow apps compiled with GraalVM to use wrap-resource to load resources from the image. Here's an example in a minimal project.

@cap10morgan
Copy link

Adding the suggested method worked for me. Time for a PR?

@agorgl
Copy link
Contributor

agorgl commented Nov 9, 2022

Bumped into this too when trying to build native image of pedestal app that used resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants