mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
CB-5209: Dirty, Dirty Fix for Building. This works, but needs to be prettier.
This commit is contained in:
parent
6e4ef508e8
commit
96d4a22215
4
bin/templates/cordova/lib/build.js
vendored
4
bin/templates/cordova/lib/build.js
vendored
@ -37,10 +37,10 @@ module.exports.run = function(build_type) {
|
|||||||
var cmd;
|
var cmd;
|
||||||
switch(build_type) {
|
switch(build_type) {
|
||||||
case '--debug' :
|
case '--debug' :
|
||||||
cmd = 'ant debug -f ' + path.join(ROOT, 'build.xml');
|
cmd = 'ant debug -f "' + path.join(ROOT, 'build.xml') + '"';
|
||||||
break;
|
break;
|
||||||
case '--release' :
|
case '--release' :
|
||||||
cmd = 'ant release -f ' + path.join(ROOT, 'build.xml');
|
cmd = 'ant release -f "' + path.join(ROOT, 'build.xml') + '"';
|
||||||
break;
|
break;
|
||||||
case '--nobuild' :
|
case '--nobuild' :
|
||||||
console.log('Skipping build...');
|
console.log('Skipping build...');
|
||||||
|
2
bin/templates/cordova/lib/clean.js
vendored
2
bin/templates/cordova/lib/clean.js
vendored
@ -28,7 +28,7 @@ var exec = require('./exec'),
|
|||||||
* Returns a promise.
|
* Returns a promise.
|
||||||
*/
|
*/
|
||||||
module.exports.run = function() {
|
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() {
|
module.exports.help = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user