nielsbasjes / yauaa

Yet Another UserAgent Analyzer

Home Page:https://yauaa.basjes.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve GraalVM support

nielsbasjes opened this issue · comments

See also #710 for some more info.

@papegaaij

I have delayed the failure of the missing VFS code to the first use instead of the loading.
This was done to make usage in a GraalVM native image a lot better, yet I do not yet have a local test to verify this.

Request: Can you please check if the change in VFS code in https://github.com/nielsbasjes/yauaa/tree/FixingGraalVM still makes it work in your context?

I you want I can build a snapshot for you.

I'm currently on vacation, but I'll give it a try next week.

@nielsbasjes The branch works fine on WildFly.

Thanks for helping out!

Last question:
Do you perhaps have a link to a very very simple demo/example/tutorial which shows me how to do this myself?
I'm looking for the simplest possible thing that uses VFS which I can then turn into an integration test (using docker).
My goals is automatically ensure VFS support works during a release of a new version.

I can think of 2 ways:

  • Start a WildFly (maybe with testcontainers) and deploy a testcase with arquillian. But this requires a lot of setup for just one test.
  • Look for inspiration in the tests for jboss-vfs itself: https://github.com/jbossas/jboss-vfs/tree/master/src/test/java/org/jboss . It does not seem to be that difficult to get a vfs URI to a jar. Perhaps you can use that to test the code?

Thanks. I'm going to try this.