..and I just tried with { stdio: 'default' } and the current run.js implementation doesn't actually support a callback for spawn, nor return the promise result.
This line: https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/run.js#L44 should be returning a promise which, when resolved, has a string containing the output. On Mon, Nov 24, 2014 at 5:01 PM, Andrew Grieve <agri...@chromium.org> wrote: > I don't think it's possible without a code change (which we're completely > open to). I tried once to route that through the existing events system, > but the problem is that doing so results in random newlines being inserted > everywhere. We'd probably need to add a new event (maybe "rawlog") that > routes to process.stdout.write() rather than console.log(). > > On Fri, Nov 21, 2014 at 11:55 AM, Matt Steele <orp...@gmail.com> wrote: > > > Hi all, sorry for the cross-post, but I wasn't sure if this was a > > StackOverflow question or something that belonged on the dev list. > > > > Basically I'm looking for a way to capture the ant/xcodebuild/etc output > > that's emitted by superspawn.js inside cordova-lib in the compile phase. > So > > far I haven't had any luck: > > > > > > > http://stackoverflow.com/questions/27050325/is-there-a-way-to-get-a-cordova-builds-stdout-using-cordova-lib > > > > Any suggestions would be appreciated. Thanks! > > >