How do I move files in the Eclipse client from one component to another component?
Accepted answer
I mean, do you have the Eclipse Projects as share roots? If so, like Ralph mentions, you can go ahead and use the Tool's Refactor/Move capabilities and get this done.
If you do not have a containment projects, just the Folder's as the share root, then in my knowledge, command line (scm move) would be your best way till we get to v603.
Also, for huge set of files, usually automation through command line is preferred than manual Eclipse client way. Ofcourse as you rightly pointed out, there are chances for errors and should be done cautiously.
Comments
to move across components, with history, you could employ dummy eclipse projects.
here are the steps for it, as outlined in the :
Enhancement 56504: Move files and folders between components and retain history
- create a dummy project and share it into your component.
- do a regular move of the things you want to move into that dummy project
- check-in your changes and close (or complete) the change sets.
- use the Team->MoveInRepository to move the dummy project to the destination component
- move the files/directories to where you really want them to go within the destination component.
- check-in your changes
- do a "Team->RemoveInRepository (or 'Delete From Repository')" on the (now empty) dummy project (unless you want to just keep it around for a subsequent move)
Thanks Dinesh. I used same approach.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 23 '16, 11:53 a.m.Note: This was originally a "comment" under question https://jazz.net/forum/questions/228403 which was specifically about moving files within a component. If you have a new question, please remember to post as a new question, and not as a comment/answer under a different question.
Naveen Tyagi
Sep 30 '16, 1:32 a.m.Yes, I refer that thread.Thanks.
https://jazz.net/forum/questions/228403/scm-move-a-file-without-loosing-history-into-another-folder-in-same-component