cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

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

mbergen
1-Visitor

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

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

2 REPLIES 2
kthierer
12-Amethyst
(To:mbergen)

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

kthierer
12-Amethyst
(To:kthierer)

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.

Announcements


Top Tags