autobuilder: Log command invocation

This commit is contained in:
Colin Walters 2014-01-30 18:02:13 -05:00
parent 79b80af7f9
commit ad831af3be

View File

@ -98,6 +98,7 @@ const TaskBuild = new Lang.Class({
let productNameUnix = ref.replace(/\//g, '_');
let buildOutputPath = Gio.File.new_for_path('log-' + productNameUnix + '.txt');
print("Running: " + argv.map(GLib.shell_quote).join(' '));
let procContext = new GSystem.SubprocessContext({ argv: argv });
GSystem.shutil_rm_rf(buildOutputPath, cancellable);
procContext.set_stdout_file_path(buildOutputPath.get_path());