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?
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?
Accepted answer
One other answer
Ratheesh,
what I did for a similar problem, is:
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.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 11 '15, 8:59 p.m.Note: I've moved the follow-up question: https://jazz.net/forum/questions/206092 to its own question.