I have a situation with structure bellow and Git plugin plus property file scanner. There are N Git repositories under "Parent_Directory". I am not able to scan "Parent_Directory" in one shot because Git plugin is expecting one .git folder per scan. So I have to scan repositories one by one which doesn't look a big issue.
Parent_Directory
|- Repository_A
| |- .git
| |- Folder
| |- File.properties
|- Repository_B
|- .git
|- Folder
|- File.properties
The challenge is if there are property files with same folder structure and file name (ie Folder/File.properties) in different repositories, I'm not able to identify which repository they belong to. It works fine with nodes which are pointing to Git repositories, so I can associate them to ":Repository" node and figure our where do they belong to. But properties are not. There is no node with :Git:Properties label.
Overall you will have ":File" nodes which are not labeled with ":Git" and query below finds many of them
MATCH (n:File)
WHERE NOT n:Git
RETURN n
Seems it happens when we use Git plugin plus scanners for Json, Yaml, XML, properties, etc.
I have two questions:
Is there a workaround to scan multiple repositories in one shot by scanning their parent directory.
If not, is there a way to give instructions to Git plugin to cover all files when other scanners are also involved.