The problem is that resource paths are specified with leading slash and loaded using ClassLoader.getResourceAsStream. When method ClassLoader.getResourceAsStream is used to load resource, leading slash should not be used. Leading slash is accepted when method Class.getResourceAsStream is used.
Simplest way to fix this problem is to replace lines 35 and 36 in HamlCompiler.java with:
In class
com.voltvoodoo.brew.HamlCompiler
loading of javascript files form classpath fails when code is run under Mac OS.The problem is that resource paths are specified with leading slash and loaded using
ClassLoader.getResourceAsStream
. When methodClassLoader.getResourceAsStream
is used to load resource, leading slash should not be used. Leading slash is accepted when methodClass.getResourceAsStream
is used.Simplest way to fix this problem is to replace lines 35 and 36 in
HamlCompiler.java
with: