Erik, I just spent the weekend moving packages around in our source tree, so I may be able to help. My process was pretty manual, but it worked:
1. For each package, p4 edit all files to be moved. 2. (At a prompt) create the directory structure for the new packages. 3. In IDEA, add the new directories to the Source Path. 4. In IDEA, use Refactor-->Move on all the files. 5. In IDEA, remove the old directories from the Source Path. 6. (Everything else is at a prompt) Make a tmp subdirectory in the target directory. 7. Move all files in the target directory to the tmp dir. 8. In the original directory, p4 revert the files. (You'll probably just use p4 revert * since the files won't be there anymore.) 9. In the original directory, p4 integrate the files to the target directory (which is now empty). 10. In the original directory, p4 delete the files. 11. In the target directory, p4 edit the files 12. Move the files from the tmp directory back to the target directory. It looks hideous, but a few scripts can reduce the tedium. And it's because of this that I'm VERY enthusiastic to see how the IDEA guys expose the API to allow source control plugins! Andy ---- ORIGINAL MESSAGE ----- Message: 15 From: "Erik Hanson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Thu, 10 Jan 2002 15:51:12 -0800 charset="Windows-1252" Subject: [Eap-list] Moving/renaming files under Perforce's control? Reply-To: [EMAIL PROTECTED] Has anyone figured out how to move or rename files in IDEA that are under Perforce's control? I can move them with the Perforce client, but then IDEA won't update all the code that uses those classes to reflect the new name/package. I can't use IDEA's move or rename features because it tries to actually move the files, which Perforce doesn't like. Thanks, Erik __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
