Skip to content

Commit

Permalink
Merge pull request #13 from nandoofz/master
Browse files Browse the repository at this point in the history
Issues #12 and #15 fix
  • Loading branch information
machellerogden committed May 16, 2016
2 parents 4989855 + f1ad125 commit 169fe9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function (options) {
SONAR_VERSION = "2.4";
SONAR_RUNNER_HOME = path.join(__dirname, format('/sonar-runner-%s', SONAR_VERSION));
SONAR_RUNNER_JAR = format('/lib/sonar-runner-dist-%s.jar', SONAR_VERSION);
SONAR_RUNNER_COMMAND = 'java -jar ' + path.join(SONAR_RUNNER_HOME, SONAR_RUNNER_JAR) + ' -X -Drunner.home=' + SONAR_RUNNER_HOME;
SONAR_RUNNER_COMMAND = 'java -jar "' + path.join(SONAR_RUNNER_HOME, SONAR_RUNNER_JAR) + '" -X -Drunner.home="' + SONAR_RUNNER_HOME + '"';

write = function (file, enc, cb) {
// do nothing with source ... not needed
Expand Down Expand Up @@ -68,7 +68,7 @@ module.exports = function (options) {
gutil.log(c);
});
process.on('exit', function (code) {
if (code !== 0) {
if (!!code && code !== 0) {
gutil.log(format('Return code: %d.', code));
throw new PluginError('gulp-sonar', format('Return code: %d.', code));
}
Expand Down

0 comments on commit 169fe9c

Please sign in to comment.