You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/12/30 17:07:27 UTC

android commit: CB-5714 Fix of android build when too big output stops build with error due to buffer overflow.

Updated Branches:
  refs/heads/master 7951eee8a -> 8e260d5c4


CB-5714 Fix of android build when too big output stops build with error due to buffer overflow.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/8e260d5c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/8e260d5c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/8e260d5c

Branch: refs/heads/master
Commit: 8e260d5c4035116d394e86388f25b6d66a9d344c
Parents: 7951eee
Author: Vyacheslav Shabelnik <vy...@kredito.de>
Authored: Mon Dec 23 17:20:54 2013 +0200
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Dec 30 11:06:37 2013 -0500

----------------------------------------------------------------------
 bin/templates/cordova/lib/exec.js | 2 +-
 test/cordova/lib/exec.js          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/8e260d5c/bin/templates/cordova/lib/exec.js
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/lib/exec.js b/bin/templates/cordova/lib/exec.js
index b1e581b..7a56b33 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);
         });

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/8e260d5c/test/cordova/lib/exec.js
----------------------------------------------------------------------
diff --git a/test/cordova/lib/exec.js b/test/cordova/lib/exec.js
index 6afa9c0..da1c520 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);