How to Export a Component?
![]()
William Rathbone (8●1●1)
| asked Feb 26 '15, 11:23 a.m.
edited Feb 27 '15, 1:43 a.m. by Geoffrey Clemm (30.1k●3●30●35) Very simple requirement but I'm struggling to find the answer within RTC.
How can I simply export the contents of a component to a location outside of a sandbox / workspace i.e. the equivalent of an svn export command.
I understand that then the files will be out of RTC control but that's exactly what I want, just a simple copy of the files with which I can do what I want.
I'm using the scm CLI on Linux |
Accepted answer
![]()
Shashikant Padur (4.2k●2●7)
| answered Feb 26 '15, 10:13 p.m.
JAZZ DEVELOPER edited Feb 26 '15, 10:35 p.m.
Once you have loaded the workspace to a sandbox you can run 'lscm workspace unload' or 'lscm unload -w <workspace>' in post 4.0.5 clients. This will disconnect the loaded workspace in the sandbox so that it will not be tracked by RTC. Note that this will not delete the sandbox contents and the .jazz5 directory will still remain. To delete the sandbox contents you need to pass the -D/--delete option to the unload subcommand.
William Rathbone selected this answer as the correct answer
Comments Thanks Sha, still a pain that you have to go via a workspace I was hoping you could just get a copy straight from the stream but it appears not.
Out of interest what does the unload command actually do? you say disconnect the workspace in the sandbox but what does that mean? does it just put some flag into the .jazz5 directory saying the directory is no longer under RTC control? Yes, it would update some info so that RTC knows not to track the workspace anymore. Note: The sandbox could still be valid as you might have loaded other workspaces to the same sandbox location.
There is an enhancement request open for loading from a stream: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=254294
|
3 other answers
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Feb 27 '15, 5:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here is a potential solution for automating it: http://thescmlounge.blogspot.de/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html
Currently there is no way to do this without having a repository workspace. There is a request to have the capability to download from the Web UI, but that is not yet implemented as far as I know. If you loaded a repository workspace and you are in Eclipse, you can also basically export the projects from there. |
![]() Ok thanks all, I think! I'm using scm command line interface on Liunx so Eclipse based options don't work for me. I suggest this is added to the RTC feature wish list ... and not just for the Web UI. |