Manually Renaming or Moving Elements

To manually rename or move WebSphere Studio files that are under Rational ClearCase source control, you can take the following steps:

  1. Rename or move the files within WebSphere Studio.
  2. From the command line, navigate to the directory that contains the files you want to rename or move.
cd <source-dir>
  1. Run the cleartool command to check out the files you want to rename or move using -ndata argument of the checkout command:
cleartool checkout -ndata <filename1> <filename2> ...
  1. Check out the directories containing the files you are renaming or moving
cleartool checkout . <target-dir-pname>
  1. Run the cleartool move command to change the names or locations of the files:
cleartool move <filename1> <target-dir-pname>

Note: When using a snapshot view, the view private <target-dir-pname> has a .renamed extension. Before proceeding to the following step, you must rename <target-dir-pname>.renamed to <target-dir-pname>:

rename <target-dir-pname>.renamed <target-dir-pname>

  1. Check in the directories that you checked out previously in step 4.
cleartool checkin . <target-dir-pname>
  1. Change directory to the <target-dir> and check in the files that were renamed or moved.
cd <target-dir-pname>
cleartool checkin <filename1> <filename2> ...