Commit 60abd3f0 authored by Christian Kandeler's avatar Christian Kandeler Committed by Joerg Bornemann
Browse files

qbs build: Add convenience function for reading process output.

Change-Id: I998ec20de032b59448585c851e79912010cdac08
Reviewed-by: default avatarJoerg Bornemann <>
parent 99f43c94
var Process = loadExtension("qbs.Process")
function readOutput(executable, args)
var p = new Process();
var output = "";
if (p.exec(executable, args, false) !== -1)
output = p.readStdOut().trim(); // Trailing newline.
return output;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment