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

Do not use cached URLs for locating the Jandex indexes #1590

Merged
merged 2 commits into from
Mar 27, 2020
Merged

Do not use cached URLs for locating the Jandex indexes #1590

merged 2 commits into from
Mar 27, 2020

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Mar 26, 2020

Resolves #1578.

The Jandex indexes have always been located using the classpath but that happened early at what turns out to be native image build time. The resulting index URLs were cached and then used later to actually read the indexes -- at native image runtime, by which time the cachedfile: URLs were useless.

In this PR the code still keeps the count of the index URLs because that is used from several places in the code to make decisions based on whether any indexes were present, but the native image runtime code now invokes the method that uses getResources rather than using the cached URLs as it used to.

There was also a typo in the pom that crept in somehow which prevented the second test Jandex index from being built. I fixed that also in this PR.

@tjquinno tjquinno self-assigned this Mar 26, 2020
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tjquinno tjquinno merged commit 193e0d4 into helidon-io:master Mar 27, 2020
@tjquinno tjquinno deleted the openapi-index-loc branch March 27, 2020 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quickstart MP native image has dependency on jar file
2 participants