Skip to main content
1-Visitor
July 30, 2015
Solved

Check in code for mks integrity using java api

  • July 30, 2015
  • 1 reply
  • 8073 views

Hi,

We need to develop check in option to connect to integrity using java API in our project.

What are the options I need to pass for check in?

Here is my code for options:

Command cmd = new Command(Command.SI,"ci");

cmd.addOption(new Option("sandbox",""));

cmd.addOption(new Option("cwd",""));

cmd.addSelection("");

I am getting the following error when i run the code: MKS125335: Out of tree members and subprojects (not located in the project directory or a subdirectory of the project directory) are not supported.

With these options and selection I am unable to connect.

Could you please suggest what options do I need to pass for doing checkin? And please let me know what was the error given above.

Your help is most required. Thanks in advance.

    Best answer by KaelLizak

    Hello Vasavi,

    Check Out resynchronizes the member to the current member revision (by default, you can change this in the dialog), and locks the member.

    Lock Member only locks the member.

    Regards,
    Kael

    P.S. Please mark the answer as Correct Answer if it solved your issue.  It makes it clear to everyone what you considered to be the correct answer by posting it directly under your questions, and lets us know the issue is resolved.

    1 reply

    16-Pearl
    August 4, 2015

    Hello Vasavi,

    I don't think the option cwd will indicate the curent working directory.  Have you tried explicitly passing the directory the sandbox is located in?

    Regards,
    Kael

    vk_011-VisitorAuthor
    1-Visitor
    August 6, 2015

    Hi Kael,

    Yes that option is available to perform checkin. And Its working now.

    I need some information regarding the difference between locking the member in Integrity using check out and Lock option available from the Member menu.

    Could you please differentiate these two?

    Regards,

    Vasavi

    KaelLizak16-PearlAnswer
    16-Pearl
    August 7, 2015

    Hello Vasavi,

    Check Out resynchronizes the member to the current member revision (by default, you can change this in the dialog), and locks the member.

    Lock Member only locks the member.

    Regards,
    Kael

    P.S. Please mark the answer as Correct Answer if it solved your issue.  It makes it clear to everyone what you considered to be the correct answer by posting it directly under your questions, and lets us know the issue is resolved.