public class SymlinkPack extends Object implements Symlinks
Symlinks
and present them as a single Symlinks
.
This abstraction allows descriptions to: 1) avoid expensive symlink map merging into a
monolithic SymlinkMap
and 2) combine links from otherwise incompatible SymlinkMap
and SymlinkDir
groups.
Constructor and Description |
---|
SymlinkPack(com.google.common.collect.ImmutableList<Symlinks> links) |
Modifier and Type | Method and Description |
---|---|
void |
forEachSymlinkBuildDep(SourcePathRuleFinder finder,
java.util.function.Consumer<BuildRule> consumer)
Run
consumer on all BuildRule build dependencies for this group of symlinks. |
void |
forEachSymlinkInput(java.util.function.Consumer<SourcePath> consumer)
Run
consumer on all SourcePath s in this groups of links. |
SymlinkPaths |
resolveSymlinkPaths(SourcePathResolverAdapter resolver)
|
public SymlinkPack(com.google.common.collect.ImmutableList<Symlinks> links)
public void forEachSymlinkInput(java.util.function.Consumer<SourcePath> consumer)
Symlinks
consumer
on all SourcePath
s in this groups of links. Used by SymlinkTree
to compose runtime deps.forEachSymlinkInput
in interface Symlinks
public SymlinkPaths resolveSymlinkPaths(SourcePathResolverAdapter resolver)
Symlinks
resolveSymlinkPaths
in interface Symlinks
public void forEachSymlinkBuildDep(SourcePathRuleFinder finder, java.util.function.Consumer<BuildRule> consumer)
Symlinks
consumer
on all BuildRule
build dependencies for this group of symlinks.forEachSymlinkBuildDep
in interface Symlinks