Increase the visibility of TreeArtifactValue.
@@ -42,7 +42,7 @@ import javax.annotation.Nullable;
* {@link TreeFileArtifact}s.
*/
@AutoCodec
-class TreeArtifactValue implements SkyValue {
+public class TreeArtifactValue implements SkyValue {
private static final Function<Artifact, PathFragment> PARENT_RELATIVE_PATHS =
new Function<Artifact, PathFragment>() {
@Override
@@ -231,12 +231,13 @@ class TreeArtifactValue implements SkyValue {
}
/**
- * Recursively get all child files in a directory
- * (excluding child directories themselves, but including all files in them).
- * @throws IOException if there is any problem reading or validating outputs under the given
- * tree artifact.
+ * Recursively get all child files in a directory (excluding child directories themselves, but
+ * including all files in them).
+ *
+ * @throws IOException if there is any problem reading or validating outputs under the given tree
+ * artifact.
*/
- static Set<PathFragment> explodeDirectory(Path treeArtifactPath) throws IOException {
+ public static Set<PathFragment> explodeDirectory(Path treeArtifactPath) throws IOException {
ImmutableSet.Builder<PathFragment> explodedDirectory = ImmutableSet.builder();
explodeDirectory(treeArtifactPath, PathFragment.EMPTY_FRAGMENT, explodedDirectory);
return explodedDirectory.build();
