how to share an eclipse project into jazz source control programatically?
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? |
Be the first one to answer this question!
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
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?
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?
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.