aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/Artifact.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/Artifact.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/Artifact.java b/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
index 49dad3ff38..e48740b3a3 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
@@ -161,6 +161,15 @@ public class Artifact
* Only aggregating middlemen and tree artifacts are expanded.
*/
void expand(Artifact artifact, Collection<? super Artifact> output);
+
+ /**
+ * Retrieve the expansion of Filesets for the given artifact.
+ *
+ * @param artifact {@code artifact.isFileset()} must be true.
+ */
+ default ImmutableList<FilesetOutputSymlink> getFileset(Artifact artifact) {
+ throw new UnsupportedOperationException();
+ }
}
public static final ImmutableList<Artifact> NO_ARTIFACTS = ImmutableList.of();