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

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?

0 votes

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.


Be the first one to answer this question!

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
× 1,221

Question asked: Jun 26 '14, 5:36 a.m.

Question was seen: 3,755 times

Last updated: Jun 27 '14, 7:52 a.m.

Related questions
Confirmation Cancel Confirm