Skip to content
Snippets Groups Projects
Commit eab5b555 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Fixed Tpd import to use relativeUri for included files


Signed-off-by: default avatarMiklos Magyari <miklos.magyari@sigmatechnology.com>
parent ca28dbf3
No related branches found
No related tags found
1 merge request!66Fixed Tpd import to use relativeUri for included files
......@@ -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();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment