From 8e260d5c4035116d394e86388f25b6d66a9d344c Mon Sep 17 00:00:00 2001 From: Vyacheslav Shabelnik Date: Mon, 23 Dec 2013 17:20:54 +0200 Subject: [PATCH] CB-5714 Fix of android build when too big output stops build with error due to buffer overflow. --- bin/templates/cordova/lib/exec.js | 2 +- test/cordova/lib/exec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/cordova/lib/exec.js b/bin/templates/cordova/lib/exec.js index b1e581b2..7a56b330 100644 --- a/bin/templates/cordova/lib/exec.js +++ b/bin/templates/cordova/lib/exec.js @@ -28,7 +28,7 @@ var child_process = require('child_process'), module.exports = function(cmd, opt_cwd) { var d = Q.defer(); try { - child_process.exec(cmd, {cwd: opt_cwd}, function(err, stdout, stderr) { + child_process.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function(err, stdout, stderr) { if (err) d.reject('Error executing "' + cmd + '": ' + stderr); else d.resolve(stdout); }); diff --git a/test/cordova/lib/exec.js b/test/cordova/lib/exec.js index 6afa9c0d..da1c5202 100644 --- a/test/cordova/lib/exec.js +++ b/test/cordova/lib/exec.js @@ -29,7 +29,7 @@ module.exports = function(cmd, opt_cwd) { var d = Q.defer(); console.log('exec: ' + cmd); try { - child_process.exec(cmd, {cwd: opt_cwd}, function(err, stdout, stderr) { + child_process.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function(err, stdout, stderr) { console.log([cmd, err, stdout, stderr]); if (err) d.reject('Error executing "' + cmd + '": ' + stderr); else d.resolve(stdout);