Skip to main content
1-Visitor
May 25, 2016
Question

How to check, if a SubProject exists in a specific DevPath

  • May 25, 2016
  • 1 reply
  • 1827 views

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

    1 reply

    12-Amethyst
    May 30, 2016

    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

    12-Amethyst
    February 10, 2017

    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.