How to rename multiple files on my workspace?
3 answers
I try a "different way" and manually create a patch.
It's a little slow but do what I need: it creates the Change Sets with the rename.
Something like that:
### Jazz Patch 1.0
#date: "2015-07-23 11:36:58.000000545 +0100"
#move: "root/dir/file1" "root/dir/file1_v2"
#move: "root/dir/file2" "root/dir/file2_v2"
...
#
Do you foresees any problem, conflict or incompability?
Comments
If this kind of patch creates the change set that you want, I see no reason not to use this approach.
When RTC creates a patch, it adds a variety of metadata to the patch file, that allows that patch to be used in various advanced scenarios (such as when the file to which you are applying the patch has been previously moved elsewhere), but since you don't need those advanced behaviors, this shouldn't matter to you (assuming RTC is willing to process the patch file without this metadata in it).
Eclipse does not have a rename for multiple files. In general it also depends on what files they are and what dependencies they have. If you would just rename Java files, after the rename all java files would be broken, because the imports would be broken. Same for other languages as you probably know.
You want a single file refactor/rename, also to keep the history of the file in SCM.
So my conclusion would be no.
You want a single file refactor/rename, also to keep the history of the file in SCM.
So my conclusion would be no.