How do I automate Repository / Workspace / Component for sharing a project in Jazz source control programatically?
(See question: https://jazz.net/forum/questions/127723).
Shell shell = ... IProject myProject = ... org.eclipse.team.internal.ui.wizards.ConfigureProjectWizard.shareProjects(shell, new IProject[] { myProject });
IWorkbench workbench = ...; com.ibm.team.internal.filesystem.ui.wizards.sharing.SharingWizard sharingWizardRTC = new SharingWizard();
sharingWizardRTC.init(workbench, myProject);
WizardDialog dialog = new WizardDialog(shell, sharingWizardRTC);
dialog.open();
One answer
https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/
https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/
https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/
https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/
The 3rd post shares files from a zip file directly into RTC SCM. This should be very similar, if the files are on disk.
Comments
Well,
If you are in a plain RTC, it comes down to using the Plain Java Client Libraries and/or the RTC SDK. If you (your Eclipse) are not connected to the repository, you will have to connect yourself and handle all the stuff the RTC SCM Eclipse extension handles.
PS, if you open a new question on an answered question (which you should not) and don't specify your new question accordingly (which you should) you should not wonder if the answers you get are in the context of the existing question/answer.
Please create your own question next time.
Another option would be to use the RTC SCM command line from within your context. It also would need to connect to the repository and require the URL, a user name and a password.
I think my question is exactly the same as the first one : automate in Eclipse the Sharing of a project.
If it is a follow-up question to the answer, then it sometimes is appropriate to post the follow-up question as a comment to that answer (although it becomes less likely you'll get an answer, because some posters only look for "unanswered questions). It is never appropriate to post a follow-up question as an "answer" to a previous question.