It's all about the answers!

Ask a question

how to share an eclipse project into jazz source control programatically?


vinitha dsouza (14719122) | asked Jun 26 '14, 5:36 a.m.
we have written  an rtc (v4.0.1) eclipse client extension to create local repository workspace and share that as a C project in eclipse.
currently we can do by using team_>share project
But is there any API is present to do this programmatically?

Comments
sam detweiler commented Jun 26 '14, 8:02 a.m.

your question says existing eclipse project into workspace
the text says workspace, then create project, but the
'currently we..' says existing project

there is no one api that does all that.  probably 15 to 20 apis
I would suggest calling the scm commandline under the covers. It provides a 'share' function.

could u tell us more what you are trying to accomplish?


vinitha dsouza commented Jun 27 '14, 5:39 a.m.

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?


sam detweiler commented Jun 27 '14, 7:52 a.m.

as I said, there is no one api that does this, but many are used.

you at least need
IWorkspaceManager srcmgr = SCMPlatform.getWorkspaceManager(ITeamRepository);
srcmgr.createWorkspace(....);
srcmgr.createComponent(.....);
after that  there are a lot of apis to find the files, create change sets,  etc, etc
I don't know how to do it myself.
better to use the scm share commandline under the covers.
I don't know how to get the eclipse project to show the shared status either.

Be the first one to answer this question!


Register or 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.