Browse files

fix whitespace issues in compiler, JS and output paths

  • Loading branch information...
1 parent ae15b4a commit 71ad70b02e546a1af2c108232a58d266afdad34d @UltCombo UltCombo committed Aug 25, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 tasks/closure-compiler.js
View
6 tasks/closure-compiler.js
@@ -33,7 +33,7 @@ module.exports = function(grunt) {
return false;
}
- var command = 'java -jar ' + closurePath + '/build/compiler.jar';
+ var command = 'java -jar "' + closurePath + '/build/compiler.jar"';
data.cwd = data.cwd || './';
@@ -47,13 +47,13 @@ module.exports = function(grunt) {
}
// Build command line.
- command += ' --js ' + data.js.join(' --js ');
+ command += ' --js "' + data.js.join('" --js "') + '"';
if (data.jsOutputFile) {
if (!grunt.file.isPathAbsolute(data.jsOutputFile)) {
data.jsOutputFile = path.resolve('./') + '/' + data.jsOutputFile;
}
- command += ' --js_output_file ' + data.jsOutputFile;
+ command += ' --js_output_file "' + data.jsOutputFile + '"';
reportFile = data.reportFile || data.jsOutputFile + '.report.txt';
}

0 comments on commit 71ad70b

Please sign in to comment.