Basic scm operations with the Java API
Oscar Picasso (31●14●20)
| asked Jan 28 '14, 3:17 p.m.
retagged Jan 31 '14, 4:15 p.m. by Dejan Custic (285●5)
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.
Oscar Picasso selected this answer as the correct answer
|
One other answer
Dejan Custic (285●5)
| answered Jan 31 '14, 4:15 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jan 31 '14, 5:03 p.m.
For reference, the SCM CLI Help is here http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m3/topic/com.ibm.team.scm.doc/topics/r_scm_cli_scm.html
There are also example topics for load, accept, and deliver. |
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.
Comments
see the Javadoc supplied in the download area for each RTC release
Why not use the scm commandline? The scm cli can output the result in json format that could be easily parsed by any program.
@sam