root is expected to be already normalized

GitOrigin-RevId: 97b75d0ec1e11bf37e3de1d191f1cd6bb5463be5
This commit is contained in:
Vladimir Krivosheev
2024-09-10 08:46:39 +02:00
committed by intellij-monorepo-bot
parent 80cad407f0
commit 30d167776f

View File

@@ -182,7 +182,7 @@ public final class ModuleBuildTarget extends JVMModuleBuildTarget<JavaSourceRoot
List<JavaSourceRootDescriptor> roots = projectDescriptor.getBuildRootIndex().getTargetRoots(this, null);
for (JavaSourceRootDescriptor root : roots) {
String path = relativizer.toRelative(root.rootFile.toString());
String path = relativizer.toRelative(root.rootFile);
if (logBuilder != null) {
logBuilder.append(path).append('\n');
}
@@ -270,7 +270,7 @@ public final class ModuleBuildTarget extends JVMModuleBuildTarget<JavaSourceRoot
Collection<Path> roots = enumerator.classes().getPaths();
for (Path file : roots) {
String path = relativizer.toRelative(file.toAbsolutePath().normalize().toString());
String path = relativizer.toRelative(file);
getContentHash(file, hash);
if (logBuilder != null) {
logBuilder.append(path);