public class ProjectSourcePathResolver extends Object
SourcePath
s to the cell in which we generate the Xcode project.Constructor and Description |
---|
ProjectSourcePathResolver(Cell projectCell,
SourcePathResolverAdapter pathSourcePathResolverAdapter,
TargetGraph targetGraph,
java.util.function.Function<? super TargetNode<?>,ActionGraphBuilder> actionGraphBuilderForNode) |
Modifier and Type | Method and Description |
---|---|
Path |
resolveSourcePath(SourcePath sourcePath)
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 PathSourcePath
s.targetGraph
- Target graph for the project target.actionGraphBuilderForNode
- Action graph builder for the project target.public Path resolveSourcePath(SourcePath sourcePath)
PathSourcePath
s utilize the
pathSourcePathResolverAdapter
to resolve the path. Otherwise
the sourcePath
is expected to be a BuildTargetSourcePath
for which we derive
the target and resolve it's output to the cell.sourcePath
- Source path to resolve.