From 96d4a222158fbf92a5dbbca3ebbbc4d65fdcdea0 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 29 Oct 2013 14:27:46 -0400 Subject: [PATCH] CB-5209: Dirty, Dirty Fix for Building. This works, but needs to be prettier. --- bin/templates/cordova/lib/build.js | 4 ++-- bin/templates/cordova/lib/clean.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index e57e26b8..3b960c60 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -37,10 +37,10 @@ module.exports.run = function(build_type) { var cmd; switch(build_type) { case '--debug' : - cmd = 'ant debug -f ' + path.join(ROOT, 'build.xml'); + cmd = 'ant debug -f "' + path.join(ROOT, 'build.xml') + '"'; break; case '--release' : - cmd = 'ant release -f ' + path.join(ROOT, 'build.xml'); + cmd = 'ant release -f "' + path.join(ROOT, 'build.xml') + '"'; break; case '--nobuild' : console.log('Skipping build...'); diff --git a/bin/templates/cordova/lib/clean.js b/bin/templates/cordova/lib/clean.js index 0f955f6a..4fc43afc 100644 --- a/bin/templates/cordova/lib/clean.js +++ b/bin/templates/cordova/lib/clean.js @@ -28,7 +28,7 @@ var exec = require('./exec'), * Returns a promise. */ module.exports.run = function() { - return exec('ant clean -f ' + path.join(ROOT, 'build.xml')); + return exec('ant clean -f "' + path.join(ROOT, 'build.xml') + '"'); } module.exports.help = function() {