asual / lesscss-engine

LESS Engine - A Java wrapper for less.js
http://www.asual.com/lesscss
Apache License 2.0
220 stars 66 forks source link

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

Open lkobashigawa opened 11 years ago

lkobashigawa commented 11 years ago

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: https://github.com/lkobashigawa/lesscss-engine/commit/088aaf61b03c3db9c562e35936aca7324de1cc43

Tzrlk commented 10 years ago

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.