Class PathResolver
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.api.metrics.steps.PathResolver
-
public class PathResolver extends Object
Resolves source code files on the agent using the stored paths of the coverage reports. Since these paths are relative, this resolver tries to find the absolute paths by guessing the prefix to the relative path. It also evaluates the defined source paths as prefixes when resolving the absolute paths.
-
-
Constructor Summary
Constructors Constructor Description PathResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
resolvePaths(Set<String> relativePaths, Set<String> requestedSourceDirectories, FilePath workspace, edu.hm.hafner.util.FilteredLog log)
Resolves source code files on the agent using the stored paths of the coverage reports.
-
-
-
Method Detail
-
resolvePaths
public Map<String,String> resolvePaths(Set<String> relativePaths, Set<String> requestedSourceDirectories, FilePath workspace, edu.hm.hafner.util.FilteredLog log) throws InterruptedException
Resolves source code files on the agent using the stored paths of the coverage reports. Since these paths are relative, this resolver tries to find the absolute paths by guessing the prefix to the relative path. It also evaluates the defined source paths as prefixes when resolving the absolute paths.- Parameters:
relativePaths
- the relative paths to maprequestedSourceDirectories
- the requested relative and absolute source directories (in the step configuration)workspace
- the workspace that contains the source code fileslog
- the log to write to- Returns:
- the resolved paths as mapping of relative to absolute paths
- Throws:
InterruptedException
-
-