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

KameletCatalog is empty with a bundled jar #209

Closed
apupier opened this issue May 3, 2021 · 2 comments · Fixed by #210
Closed

KameletCatalog is empty with a bundled jar #209

apupier opened this issue May 3, 2021 · 2 comments · Fixed by #210
Assignees

Comments

@apupier
Copy link
Contributor

apupier commented May 3, 2021

it is workign fine when the project is opened in an IDE but it is empty when the jar is bundled.

The line

List<String> files = IOUtils.readLines(KameletsCatalog.class.getClassLoader().getResourceAsStream(KAMELETS_DIR), StandardCharsets.UTF_8);

is returning an empty list.

note related to it:
I think it will also require to use "/" separator instead of File.separator and to use the / at the beginning of the path for abundled jar.

@oscerd
Copy link
Contributor

oscerd commented May 3, 2021

Feel free to fix this

@oscerd
Copy link
Contributor

oscerd commented May 3, 2021

Otherwise I'll fix it during the week

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 a pull request may close this issue.

2 participants