How can you copy a project, then rename it? If I copy the entire contents of a project into a new folder in Explorer, then import the project into CW, then try to right click on the project in the project pane and try to 'Rename' it, I get a 'refactor exception' error. I'm running CW for MCU 10.4.
I just copy the project folder, rename it, then import the project to CW workspace.
I found it a simple way, and it works OK
Thank you. The new copied project compiles fine, but there are many project settings files, debugger files, and the project name itself in the Project pane which still show the old project name. If I right click on the project name and click Rename, this was when it gave me the refactor exception error.
Gene, I don't quite understand you: From my point of view, there are 2 reasons to copy a project and work on the new one:
1) if I want to freeze a project and work on a new revision. In this case, I don't mind that the project and files have the same name.I just rename the folder name.
2) If I want to start a new project, but want to use all teh system profile from an old project. The IDE enable you to start a new project and import the profile from another.
So, if you need a 3rd option, please clarify your needs.
Brgds,
These two blogs may be helpful to you:
http://mcuoneclipse.com/2012/10/21/copy-my-codewarrior-project/
Thanks! this help was useful :smileywink:
Thank you for helping, but when I right click on a project, Copy, then Paste it in the Projects pane, many source files do not get copied as viewed in Windows Explorer. Consequently when I try to build there are many compile errors.