diff options
author | 2017-01-18 17:32:07 +0000 | |
---|---|---|
committer | 2017-01-18 18:34:10 +0000 | |
commit | dadde6f1bf93efa3e73dbbbf557ec37a57a0eefe (patch) | |
tree | 59c15f960773724c95962c96dbcd487d107f7bb9 /src/main/java/com/google/devtools/build/lib/skyframe | |
parent | 227a06872dd5e1a2ca32655ad699848b3651db36 (diff) |
Support mapping of Paths to URIs
Bazel-created files (like log files of test runs) are internally reported
as Paths. However, this is not always the most useful representation of the
location of that artifact for a consumer of build events. Therefore, support
a mapping of paths to more useful URIs.
--
PiperOrigin-RevId: 144843525
MOS_MIGRATED_REVID=144843525
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java index 3c3b45589b..bff5be7e49 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java @@ -1080,14 +1080,14 @@ public final class SkyframeActionExecutor implements ActionExecutionContextFacto private void reportActionExecution(Action action, ActionExecutionException exception, FileOutErr outErr) { - String stdout = null; - String stderr = null; + Path stdout = null; + Path stderr = null; if (outErr.hasRecordedStdout()) { - stdout = outErr.getOutputPath().toString(); + stdout = outErr.getOutputPath(); } if (outErr.hasRecordedStderr()) { - stderr = outErr.getErrorPath().toString(); + stderr = outErr.getErrorPath(); } postEvent(new ActionExecutedEvent(action, exception, stdout, stderr)); } |