mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 10:42:35 +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 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')) {
|
||||
|
|
Loading…
Reference in a new issue