Fixing windows related errors in gradle build file.

This commit is contained in:
meri
2013-12-12 13:51:48 +01:00
parent cef6fbd285
commit b8cb398de1
2 changed files with 16 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*jshint rhino:true, unused: false */
/*global name:true, less, loadStyleSheet */
/*global name:true, less, loadStyleSheet, initRhinoTest, os */
if (typeof initRhinoTest === 'function') { // definition of additional test functions (see rhino/test-header.js)
initRhinoTest();
@@ -120,8 +120,9 @@ less.Parser.fileLoader = function (file, currentFileInfo, callback, env) {
newFileInfo.currentDirectory = path;
newFileInfo.filename = href;
var data = null;
try {
var data = readFile(href);
data = readFile(href);
} catch (e) {
callback({ type: 'File', message: "'" + less.modules.path.basename(href) + "' wasn't found" });
return;