Skip to content
Snippets Groups Projects

Fixed Tpd import to use relativeUri for included files

Merged Miklos Magyari requested to merge reluri into main
1 file
+ 5
3
Compare changes
  • Side-by-side
  • Inline
@@ -374,6 +374,7 @@ public class TpdImporter {
projectsCreated.add(node.getNodeName());
}
}
projectsToImport.entrySet().stream().forEach((x) -> {
final NodeList referencedProjectsList = x.getValue().getDocumentElement().getChildNodes();
@@ -846,9 +847,10 @@ public class TpdImporter {
return;
}
final Node projectRelativePathNode = attributeMap.getNamedItem(ProjectFormatConstants.FILE_ECLIPSE_LOCATION_NODE);
final File projectDir = new File(projectUri).getParentFile();
collectedFileNames.add(Path.of(projectDir.getAbsolutePath(), projectRelativePathNode.getNodeValue()));
final Node relativeUriNode = attributeMap.getNamedItem(ProjectFormatConstants.FOLDER_RELATIVE_LOCATION);
final File projectDir = new File(projectUri).getParentFile();
collectedFileNames.add(Path.of(projectDir.getAbsolutePath(), relativeUriNode.getNodeValue()));
latch.countDown();
}
});
Loading