Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use forward-slash instead of File.separator for resource URLs #62

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

kohlschuetter
Copy link
Contributor

Previously, we were calling getClassLoader().getResource(String) with a path that used File.separator. Since getResource expects a URL, this is incorrect, and, unfortunately, fails on Windows, where File.separator incidentally isn't a forward slash.

Fix the code to always use a forward slash here.

Previously, we were calling getClassLoader().getResource(String) with a
path that used File.separator. Since getResource expects a URL, this is
incorrect, and, unfortunately, fails on Windows, where File.separator
incidentally isn't a forward slash.

Fix the code to always use a forward slash here.
@slachiewicz
Copy link
Member

Thx!

@slachiewicz slachiewicz merged commit c583759 into mojohaus:master Jul 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants