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

Fixed resource path bug on Windows. #140

Merged
merged 1 commit into from Aug 23, 2020

Conversation

cpmcdaniel
Copy link
Contributor

The trick is to use File#getAbsoluteFile instead of File#getAbsolutePath and then getting a java.net.URL from that. Otherwise, the path will start with a drive letter. Selmer is looking for absolute paths starting with "/" or "file:/". The approach taken in this patch avoids having to do some sort of absolute path matching (regex) for Windows-style paths in Selmer.

@cpmcdaniel
Copy link
Contributor Author

I bumped the version number, btw. I needed a 0.3.2 jar in my local repo to be able to run and test my cryogen project.

@lacarmen lacarmen merged commit c3aeef3 into cryogen-project:master Aug 23, 2020
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.

None yet

2 participants