alexo/wro4j — Issue #20: Problem in LessCss extensibility 
Author: martin-g
Created: 2012-01-31 08:05:43+00:00
State: open

Hi Alex,

Recently I needed to upgrade locally less.js to 1.2.1 and faced the following problem:

https://github.com/alexo/wro4j/blob/1.4.x/wro4j-extensions/src/main/java/ro/isdc/wro/extensions/processor/support/less/LessCss.java
has protected method getScriptAsStream() which someone like me should override to provide his own version of less.js.
So far so good but the problem comes from the other two .js files (init.js and run.js) which are loaded with getClass().getResourceAsStream(). Since my class is not in the same package as LessCss these lookups fail to find these two .js files.
A solution is to move those in src/main/resources/ and load them with getClass().getClassLoader().getResourceAsStream().