Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello,
I would like to check if a Project exists within a specific devPath vie Java-Api (or cmd-line).
for Example:
Create A project on Mainline:
* rootA
* subB
*subC
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.
HTH Jürgen
Meanwhile I use another method to see what is happening in variants/devpaths
The command
si projectinfo -P /rootA/subB --devPath=myAwesomeDevPath
should produce 2 line looking like this
Attributes:
mksVariant=1.2
whith
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.