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.
The trick is to use
File#getAbsoluteFile
instead ofFile#getAbsolutePath
and then getting ajava.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.