Search in sources :

Example 1 with ActionExecutedEvent

use of com.google.devtools.build.lib.actions.ActionExecutedEvent in project bazel by bazelbuild.

the class SkyframeActionExecutor method reportActionExecution.

private void reportActionExecution(Action action, ActionExecutionException exception, FileOutErr outErr) {
    Path stdout = null;
    Path stderr = null;
    if (outErr.hasRecordedStdout()) {
        stdout = outErr.getOutputPath();
    }
    if (outErr.hasRecordedStderr()) {
        stderr = outErr.getErrorPath();
    }
    postEvent(new ActionExecutedEvent(action, exception, stdout, stderr));
}
Also used : Path(com.google.devtools.build.lib.vfs.Path) ActionExecutedEvent(com.google.devtools.build.lib.actions.ActionExecutedEvent)

Aggregations

ActionExecutedEvent (com.google.devtools.build.lib.actions.ActionExecutedEvent)1 Path (com.google.devtools.build.lib.vfs.Path)1