mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:56:52 +02:00
Extend timeout for capturing executable output
This commit is contained in:
parent
30bd8977b7
commit
673a396fdc
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,7 @@ def captureOutput = { String command ->
|
||||||
def proc = command.execute()
|
def proc = command.execute()
|
||||||
def sout = new StringBuilder(), serr = new StringBuilder()
|
def sout = new StringBuilder(), serr = new StringBuilder()
|
||||||
proc.consumeProcessOutput(sout, serr)
|
proc.consumeProcessOutput(sout, serr)
|
||||||
proc.waitForOrKill(10000)
|
proc.waitForOrKill(30000)
|
||||||
def errorOutput = serr.toString()
|
def errorOutput = serr.toString()
|
||||||
if (!errorOutput.isEmpty()) {
|
if (!errorOutput.isEmpty()) {
|
||||||
throw new GradleException("Command '${command}' failed with error ${errorOutput}")
|
throw new GradleException("Command '${command}' failed with error ${errorOutput}")
|
||||||
|
@ -181,6 +181,7 @@ def scanQmlImports = { File qmlRootPath ->
|
||||||
" -rootPath ${qmlRootPath.absolutePath}" +
|
" -rootPath ${qmlRootPath.absolutePath}" +
|
||||||
" -importPath ${qmlRoot.absolutePath}/qml"
|
" -importPath ${qmlRoot.absolutePath}/qml"
|
||||||
|
|
||||||
|
println command
|
||||||
def commandResult = captureOutput(command)
|
def commandResult = captureOutput(command)
|
||||||
new JsonSlurper().parseText(commandResult).each {
|
new JsonSlurper().parseText(commandResult).each {
|
||||||
if (!it.containsKey('path')) {
|
if (!it.containsKey('path')) {
|
||||||
|
|
Loading…
Reference in a new issue