diff options
author | 2018-04-05 14:45:35 -0700 | |
---|---|---|
committer | 2018-04-05 14:47:09 -0700 | |
commit | 73b6452d55c6b4a196b8aea55126058c1d88e7bd (patch) | |
tree | 7d3d1fabfa54d8d9e5bba5671f4b16a8bde69af4 /src/main/java/com/google/devtools/build/lib/causes | |
parent | 204779650039a8244f72d99dfb8d415547c09cff (diff) |
Cleanup Artifact.getPath() call from ActionExecutionException.
PiperOrigin-RevId: 191801369
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/causes')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/causes/ActionFailed.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/causes/ActionFailed.java b/src/main/java/com/google/devtools/build/lib/causes/ActionFailed.java index c537adeba2..f1d6d26454 100644 --- a/src/main/java/com/google/devtools/build/lib/causes/ActionFailed.java +++ b/src/main/java/com/google/devtools/build/lib/causes/ActionFailed.java @@ -18,7 +18,6 @@ import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.Bui import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.ActionCompletedId; import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.ConfigurationId; import com.google.devtools.build.lib.cmdline.Label; -import com.google.devtools.build.lib.vfs.Path; import javax.annotation.Nullable; /** @@ -26,19 +25,20 @@ import javax.annotation.Nullable; * the path to the primary output. For reference, a Label is attached as well. */ public class ActionFailed implements Cause { - private final Path path; + private final String artifactStringRepresentation; private final Label label; private final String configurationChecksum; - public ActionFailed(Path path, Label label, @Nullable String configurationChecksum) { - this.path = path; + public ActionFailed( + String artifactStringRepresentation, Label label, @Nullable String configurationChecksum) { + this.artifactStringRepresentation = artifactStringRepresentation; this.label = label; this.configurationChecksum = configurationChecksum; } @Override public String toString() { - return path.toString(); + return artifactStringRepresentation; } @Override @@ -49,7 +49,7 @@ public class ActionFailed implements Cause { @Override public BuildEventStreamProtos.BuildEventId getIdProto() { ActionCompletedId.Builder actionId = - ActionCompletedId.newBuilder().setPrimaryOutput(path.toString()); + ActionCompletedId.newBuilder().setPrimaryOutput(artifactStringRepresentation); if (label != null) { actionId.setLabel(label.toString()); } |