Skip to main content
13-Aquamarine
March 28, 2017
Solved

Locate members existing in a subproject and all its child subprojects

  • March 28, 2017
  • 1 reply
  • 6394 views

Hello,

We are using Integrity Client version 10.8.0.8356

My project has a hierarchical structure of subprojects containing file members and other subprojects

+project.pj

  +Documentation\project.pj

  - Release\project.pj

     - src\project.pj

         - core\project.pj

               member1.java

               member2.doc

         - tests\project.pj

                TestCase1.java

                TestCase2.java

I would  like to be able to search (locate) file members existing in the src subproject and all its child subprojects (i.e. core and tests)

Unfortunately the si locate command does not seem to allow searching by starting from a selected subproject (i.e. src) in a recursive manner

I use the si locate command according to the SourceCLIReference_Integrity_10_6.pdf documentation

a) If I use --projectscope=this option , then only the immediate children members of the src subproject are found, no downwards recursive search appears to be performed in contained subprojects

si locate --hostname=someServer --port=somePort --user=someUser --project=t:/..../src/project.pj  --depth=current   --noexactmatch  --nocasesensitive  --projectscope=this --memberbyname=member1

b) If I use the  --projectscope=all option, then all the registered projects on the server are searched, which is not what I want, sorry. There are far too many projects on the server to search in all of them.

si locate --hostname=someServer --port=somePort --user=someUser --project=t:/..../src/project.pj  --depth=current   --noexactmatch  --nocasesensitive  --projectscope=all --memberbyname=member1

Any help is welcome, thank you!

    Best answer by llambert

    Hi Alexandru,

    I cannot help you with core functionality but i have a custom written search tool that can be plugged into the client as a custom action and it will work through subprojects.  Let me know if you want this tool.  Again, it was built by PTC field team so is not maintained by PTC support but still works across many versions of ILM.

    1 reply

    llambert12-AmethystAnswer
    12-Amethyst
    March 28, 2017

    Hi Alexandru,

    I cannot help you with core functionality but i have a custom written search tool that can be plugged into the client as a custom action and it will work through subprojects.  Let me know if you want this tool.  Again, it was built by PTC field team so is not maintained by PTC support but still works across many versions of ILM.

    amatei13-AquamarineAuthor
    13-Aquamarine
    March 29, 2017

    Hello Lance,

    Yes, certainly it would be very helpful to see how it works, thank you.

    How can I have access to the tool ?

    12-Amethyst
    March 30, 2017

    I dont know if that helps but

    The only method I found generating some kind of parseable project tree (with 10.4) was something like

    si viewproject -R -P D:/project/on/server/project.pj --projectRevision=1.3 --filter=file:NO_MATCH

    I would also be interrested in a command/method to output the project and all the subprojects within

    the tree as a list of absolute server paths.

    Anyhow form the performance aspect it might be better for you to filter/parse the results

    of 'si locate --projectscope=all'.

    HTH Jürgen