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() {