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

How to share a project in Jazz source control programatically?

I am writing an rtc (v4.0.1) eclipse client extension to create local repository workspace and share that as a C project in eclipse.
I could create workspace and add as a C project, but could not find an API to share it in Jazz source control.
It can be easily done by right clicking on this C project and then selecting "Team" > "Share".
Can any one mention  what is the java API to do this programatically?

0 votes

Comments

Note: I've moved the follow-up question: https://jazz.net/forum/questions/206092 to its own question.


Accepted answer

Permanent link
On a second thought, if you are in Eclipse, you can try to find the sharing wizard that is called and simply find the code that does the sharing and supply the correct information in your automation.
Ratheesh P selected this answer as the correct answer

1 vote


One other answer

Permanent link
Ratheesh,

what I did for a similar problem, is:
  • Iterate the file structure
  • Look up if folders in SCM exist in the component. If not create the IFolder
  • Look if the files exist and if not create the IFileItem
  • Store the content for the IFileItem and compar the content of the IFileItem, if that existed.
  • Deliver the file content if it is different to the existing one
  • Deliver all changes
  • create a baseline.

I plan to post some of the code in my blog later this month.


0 votes

Comments

I don't know if there is a unique share API call. You could try to debug what the share call does in the RTC Eclipse client.

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,952

Question asked: Sep 20 '13, 9:15 a.m.

Question was seen: 5,113 times

Last updated: Sep 11 '15, 8:59 p.m.

Confirmation Cancel Confirm