From 673a396fdcc704b35f2c38e9047a25b262d26293 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 16 Jan 2018 09:11:50 -0800 Subject: [PATCH] Extend timeout for capturing executable output --- android/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 9559b586b7..d279af02ae 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -158,7 +158,7 @@ def captureOutput = { String command -> def proc = command.execute() def sout = new StringBuilder(), serr = new StringBuilder() proc.consumeProcessOutput(sout, serr) - proc.waitForOrKill(10000) + proc.waitForOrKill(30000) def errorOutput = serr.toString() if (!errorOutput.isEmpty()) { throw new GradleException("Command '${command}' failed with error ${errorOutput}") @@ -181,6 +181,7 @@ def scanQmlImports = { File qmlRootPath -> " -rootPath ${qmlRootPath.absolutePath}" + " -importPath ${qmlRoot.absolutePath}/qml" + println command def commandResult = captureOutput(command) new JsonSlurper().parseText(commandResult).each { if (!it.containsKey('path')) {