Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to load a component from a RTC repository workspace to the local drive.Using JAVA API.

Hi

I am trying to load a component from a RTC repository workspace to the local drive.

I have used the below snippet..but it is not working.  

What are the values for : sandbox, relatLocation and versionable to be intitalized .

//Code starts here:

ILoadOperation loadOp = IOperationFactory.instance.getLoadOperation(new LoadDilemmaHandler() {

});

ISharingManager sharingManager = FileSystemCore.getSharingManager();

loadOp.requestLoad(sandbox, relatLocation, workspaceConnection, component, versionable); 

loadOp.run(monitor);

0 votes



2 answers

Permanent link
There have been numerous discussions around this here. Try to look in one of the answers here: https://www.google.com/search?q=api+load+andbox+site%3Ajazz.net

I searched these results recently and there is a lot of example code.

Sandbox is a versioned location on the disk. RelatLocation is likely a relative path to the sandbox, versionable a versionable file. I think you want a different API call that just loads everything. I believe the code in some of the questions will help you out.

0 votes


Permanent link
The IOperationFactory is not API so it can change at any time. Also, it is undocumented.

If you want to automate the loading of components into a local sandbox your best bet is SCM CLI. You can invoke it using Java if you'd like. Also, there is a JSON output feature for many of the subcommands to make it easier to parse the output.

https://jazz.net/library/article/1031

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940
× 383

Question asked: Aug 05 '14, 2:25 a.m.

Question was seen: 6,394 times

Last updated: Aug 05 '14, 8:42 a.m.

Confirmation Cancel Confirm