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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

PTC Integrity - API dropsandbox

Russell
1-Newbie

PTC Integrity - API dropsandbox

I am trying to use the mksapi from MKS 2009 to drop a sandbox from a java application. I reviece an APIException that states "A value for "sandboxName" is required."

Here is the code that I am using.

Command mksDropSandbox = new Command(Command.SI,"dropsandbox");

mksDropSandbox.addOption(new Option("noconfirm"));

mksDropSandbox.addOption(new Option("delete","all"));

mksDropSandbox.addOption(new Option("Y"));

mksDropSandbox.addOption(new Option("cwd",sandbox.getParentFile().getAbsolutePath()));

mksDropSandbox.addSelection(sandbox.getName());

mksCommandResponse = mksCommandRunner.execute( mksDropSandbox );

Any help will be appreciated.

5 REPLIES 5
KaelLizak
14-Alexandrite
(To:Russell)

Hello Russell,

I've tried to take a look at this and haven't found anything so far. Does anyone else in the community have anything to share here?

Failing that, if you haven't already, you may want to open a case with our Integrity Support team, then sharing what you find out here.

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
mrump
14-Alexandrite
(To:Russell)

Hi Russel,

IMHO you could leave out the CWD option, as "sandbox.getName()" already gives the absolute path to the project.pj file you need (assuming that your sandbox object represents is a MKS API workitem object)

HTH Matthias

Russell
1-Newbie
(To:mrump)

I agree that the CWD option could be omitted, but that is a peripherial issue. The core problem is that I am unable to specify the sandbox name, full path to the pj file. The code that I have returns APIException that states "A value for "sandboxName" is required."

Russell

KaelLizak
14-Alexandrite
(To:Russell)

Are you doing this as a client side integration, or a server side integration?


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager

I am trying to do this as a client side integration.

Announcements


Top Tags