Rename Elements

To rename WebSphere Studio files that are under ClearCase source control, you can manually rename elements or you can run a script that automates the process. 

To run a script that automates the process of renaming WebSphere Studio files that are under Rational ClearCase source control, take the following steps:

  1. Note the current name of the source file for later reference.
  2. Rename the file within WebSphere Studio.
  3. From the command line, move to the directory that contains the source file that you are renaming and execute the following command:

ccperl <script-pname>ccmove.pl <source> <target-dir-pname>

where <script-pname> is the path name to the directory that contains the ccmove.pl script, <source> is the original name of the file you are renaming (the name that you noted in step 1), and <target-dir-pname> is the path name to the destination file. Note that this pathname must end in the new file name.

ClearCase renames the file and moves it to the directory specified by the <target-dir-pname>

Note: To run this script successfully, the following conditions must be met:

Related tasks
Manually Renaming or Moving Elements