Skip to content

Commit

Permalink
Fix execution when sonar-runner path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpianista committed Oct 12, 2016
1 parent a6d1d50 commit c4faa70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/sonar_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ module.exports = function (grunt) {
var SONAR_RUNNER_HOME = process.env.SONAR_RUNNER_HOME || __dirname+'/../sonar-runner-2.4';
var SONAR_RUNNER_OPTS = process.env.SONAR_RUNNER_OPTS || "";

var JAR = '/lib/sonar-runner-dist-2.4.jar';
var SONAR_RUNNER_COMMAND = 'java ' + SONAR_RUNNER_OPTS + ' -jar ' + SONAR_RUNNER_HOME + JAR+' -Drunner.home=' + SONAR_RUNNER_HOME;
var LIST_CMD = (/^win/).test(os.platform()) ? 'dir '+SONAR_RUNNER_HOME + JAR : 'ls '+SONAR_RUNNER_HOME + JAR;
var JAR = SONAR_RUNNER_HOME + '/lib/sonar-runner-dist-2.4.jar';
var SONAR_RUNNER_COMMAND = 'java ' + SONAR_RUNNER_OPTS + ' -jar "' + JAR + '" -Drunner.home="' + SONAR_RUNNER_HOME + '"';
var LIST_CMD = (/^win/).test(os.platform()) ? 'dir "' + JAR + '"' : 'ls "' + JAR + '"';

var mergeOptions = function (prefix, effectiveOptions, obj) {
for (var j in obj) {
Expand Down

0 comments on commit c4faa70

Please sign in to comment.