softprops/less-sbt — pull request #17 by melezov (2012-02-09 13:27:25+00:00)
Title: Fixed problems on Windows system which do not use the / path separator.

Running the scripted tests on Windows fail with an wrapped exception being thrown from less-rhino-1.1.5.js *readFile* method invoked on the Rhino shell.

The problem is in the compile function requiring a filename path which consists of unix path separators as can be seen on line 2467:

function compile(scriptName, code, min) {
curPath = rootPath = scriptName.slice(0, scriptName.lastIndexOf('/'));
...

I'm guessing that this needs to be fixed either everywhere in less-rhino-x.js by matching both path separators, or consolidated early into linux separators - which is a simple string replace function I plugged into the sbt plugin.