Make provided path absolute when creating ProjectResourceSet

This commit is contained in:
Fabian Krüger
2024-04-22 19:27:08 +02:00
committed by GitHub
parent ba8bc91f52
commit 1ff0cdf906

View File

@@ -40,6 +40,7 @@ public class ProjectResourceSetFactory {
}
public ProjectResourceSet create(Path baseDir, List<SourceFile> sourceFiles) {
baseDir = baseDir.toAbsolutePath().normalize();
List<RewriteSourceFileHolder<? extends SourceFile>> rewriteSourceFileHolders = sourceFileWrapper
.wrapRewriteSourceFiles(baseDir, sourceFiles);
return createFromSourceFileHolders(rewriteSourceFileHolders);