I would like to check if a Project exists within a specific devPath vie Java-Api (or cmd-line).
Create A project on Mainline:
create a Devpath "myAwesomeDevPath" on subB
drop subC on devPath.
If i try to get
si projectinfo -P /rootA/subB/subC --devPath=myAwesomeDevPath
i get a valid Project from within the response. Is there any Information in the Response about the droped sub-Project
I also found this behaviour strange and experimented myself.
My explanation would be that -P /rootA/subB/subC --devPath=myAwesomeDevPath really exists
(it was created when creating the devpath on subB) but it is not used anymore.
The only solution I found till now is
si locate --depth=current -P /rootA/subB/subC
and then check (parse?) whether your devpath is listed in the response.
(I would also be interrested in a more elegant solution.)
Other options of 'si locate' might also be interresting for you.
Meanwhile I use another method to see what is happening in variants/devpaths
si projectinfo -P /rootA/subB --devPath=myAwesomeDevPath
should produce 2 line looking like this
si mods -P /rootA/subB -r 1.2 --devpath=myAwesomeDevPath
you should be able to find out if your subC is currently dropped in your devpath.