python - How to read gradle build progress from it's output? -


i execute gradle python subprocess:

proc = subprocess.popen(["./gradlew", "assemble", stdout=subprocess.pipe, stderr=subprocess.pipe, ) 

then run 2 threads read stdout , stderr:

class mythread(qtcore.qthread):      def run(self):         while true:             line = self.stream.readline()             if line not none , len(line) > 0:                 // process line             else:                break 

i read log correct, can't read output like:

> building 53% > :project:assemble 

i tried replace readline read, not helped.

if execute:

./gradlew assemble | hd 

i not see build progress in hd.

is solution read progress?


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -