Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

PTC Integrity - API dropsandbox

$
0
0

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.


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>