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

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.

1

0 votes

Comments

see the Javadoc supplied in the download area for each RTC release


see the SCMPlatform and IWorkspace objects

 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


I read the Javadoc supplied  in the release area, and especially the SCMPlatform and IWorkspace objects.

I found the information about many other commands I like to use (create workspace, build definitions etc.) but not for the three basic mentioned in my post. Could you give some example for these commands?

@Shashikant
I already use the Java API extensively to create many objects, some that cannot be created from the command line like build definition. To be consistent I would like to continue to use the Java API.

Futhermore I need to call the commands from Java so it make sens to use the Java API.


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
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.

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,939
× 1,381
× 1,202

Question asked: Jan 28 '14, 3:17 p.m.

Question was seen: 6,072 times

Last updated: Jan 31 '14, 5:03 p.m.

Confirmation Cancel Confirm