public class IjProjectSourcePathResolver extends AbstractSourcePathResolver
Constructor and Description |
---|
IjProjectSourcePathResolver(TargetGraph targetGraph) |
Modifier and Type | Method and Description |
---|---|
Optional<BuildTarget> |
getBuildTarget(SourcePath sourcePath) |
protected ProjectFilesystem |
getBuildTargetSourcePathFilesystem(BuildTargetSourcePath sourcePath) |
static Optional<Path> |
getOutputPathFromJavaTargetNode(TargetNode<?> targetNode,
BuildTarget buildTarget,
ProjectFilesystem projectFilesystem) |
String |
getSourcePathName(BuildTarget target,
SourcePath sourcePath)
Source path names are only used when constructing the ActionGraph, so we don't need to support
them here.
|
static boolean |
isJvmLanguageTargetNode(TargetNode<?> targetNode) |
static boolean |
isJvmTestTargetNode(TargetNode<?> targetNode) |
protected com.google.common.collect.ImmutableSortedSet<SourcePath> |
resolveDefaultBuildTargetSourcePath(DefaultBuildTargetSourcePath targetSourcePath)
Resolve the default output path for the given targetSourcePath, returning a sourcepath pointing
to the output.
|
createRelativeMap, filterInputsToCompareToOutput, getAbsolutePath, getAllAbsolutePaths, getFilesystem, getIdeallyRelativePath, getMappedPaths, getRelativePath, getRelativePath, getSourcePathNames, getSourcePathNames
public IjProjectSourcePathResolver(TargetGraph targetGraph)
protected com.google.common.collect.ImmutableSortedSet<SourcePath> resolveDefaultBuildTargetSourcePath(DefaultBuildTargetSourcePath targetSourcePath)
resolveDefaultBuildTargetSourcePath
in class AbstractSourcePathResolver
public String getSourcePathName(BuildTarget target, SourcePath sourcePath)
getSourcePathName
in interface SourcePathResolver
getSourcePathName
in class AbstractSourcePathResolver
protected ProjectFilesystem getBuildTargetSourcePathFilesystem(BuildTargetSourcePath sourcePath)
getBuildTargetSourcePathFilesystem
in class AbstractSourcePathResolver
public Optional<BuildTarget> getBuildTarget(SourcePath sourcePath)
public static boolean isJvmLanguageTargetNode(TargetNode<?> targetNode)
public static boolean isJvmTestTargetNode(TargetNode<?> targetNode)
public static Optional<Path> getOutputPathFromJavaTargetNode(TargetNode<?> targetNode, BuildTarget buildTarget, ProjectFilesystem projectFilesystem)