Basic scm operations with the Java API
Is there some documentation / javadoc on how to perform the following commands with the RTC Java API:
- load (simple load of a repository workspace, no rules)
- accept
- deliver
These commands will not be called interactively from an IDE but from a maven plugin called on the command line (the plugin is written in java).
We use RTC version 4.0.3.
Accepted answer
The plain Java client download comes with snippets that may help. Snippet2.java shows how to deliver changes. Accepting is similar except you call IWorkspaceConnection#accept(...) Loading is more complicated and the documentation for this isn't published because it isn't considered supported API for public use. I would recommend what Shashikant suggests and use the CLI.
Comments
sam detweiler
Jan 28 '14, 4:36 p.m.see the Javadoc supplied in the download area for each RTC release
Shashikant Padur
JAZZ DEVELOPER Jan 28 '14, 10:09 p.m.Why not use the scm commandline? The scm cli can output the result in json format that could be easily parsed by any program.
Oscar Picasso
Jan 29 '14, 10:02 a.m.@sam