|Constructor and Description|
|Modifier and Type||Method and Description|
Resolve a relative path to the project cell's filesystem.
public ProjectSourcePathResolver(Cell projectCell, SourcePathResolverAdapter pathSourcePathResolverAdapter, TargetGraph targetGraph, java.util.function.Function<? super TargetNode<?>,ActionGraphBuilder> actionGraphBuilderForNode)
projectCell- Cell to which the project target belongs.
pathSourcePathResolverAdapter- Source path resolver to use for
targetGraph- Target graph for the project target.
actionGraphBuilderForNode- Action graph builder for the project target.
public Path resolveSourcePath(SourcePath sourcePath)
PathSourcePaths utilize the
pathSourcePathResolverAdapterto resolve the path. Otherwise the
sourcePathis expected to be a
BuildTargetSourcePathfor which we derive the target and resolve it's output to the cell.
sourcePath- Source path to resolve.