asual/lesscss-engine

LessEngine.compile can't load a less file from a jar

Opened this issue · 1 comments

If I try to compile a less file that is in a jar, i get an IOException:

java.io.IOException: No such file jar:file:/path/to/jar/file.jar!/path/to/file.less

getClassLoader().getResource() is finding the file in the classpath, but the jar file path format causes the UnixNewlinesResourceLoader to choke.

I created a fork that has a failing unit test if that helps:
lkobashigawa@088aaf6

I'm getting this issue now as well, though it's to do with the interpreted less compilation once the initial files have been loaded, so imports within jars don't work.