cryogen-project / cryogen-core

Cryogen's core
Eclipse Public License 1.0
69 stars 62 forks source link

Fixed resource path bug on Windows. #140

Closed cpmcdaniel closed 4 years ago

cpmcdaniel commented 4 years ago

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 commented 4 years ago

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.