Fork me on GitHub
#graalvm
<
2020-04-16
>
tees20:04:38

I'm trying to access a file in resources from a compiled native image (without much luck). Is this possible?

tees20:04:49

ie, (io/resource "foo.clj") works in cider, but fails in Graal; I have added a catch all regex to my includes flag: ( "-H:IncludeResources='.*'")

borkdude20:04:21

@tees yes, this is possible, but your pattern may be incorrect. for clj-kondo I have this:

"-H:IncludeResources=clj_kondo/impl/cache/built_in/.*" \
"-H:Log=registerResource:" \
The latter will print which resources it included.

borkdude20:04:43

The single quotes in your pattern may not be needed

tees20:04:01

Oh. Thanks @borkdude. I think that worked. Also, wanted to shout out thanks for the clj-rust-graal example. It's been helpful.

👍 4