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);
2 answers
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.
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.
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
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