How to move a project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to move a project

6,151 Views
admin
Specialist II
Using CW6.0, I have modified an existing project.  Now that development is complete, I want to move the project directory from one sub-directory to another.  How is this done? 
 
I looked in the Project Preferences and found the project relative paths but can't seem to modify the Project Path to point to the new file locations.
 
Spencer
Labels (1)
0 Kudos
3 Replies

355 Views
mke_et
Contributor IV
I run CW 3.1 and I just move the entire structure. I move the directory with the mcp file and everthing in it to the new area and then everything works fine.

This assumes that you are keeping the name of the project the same, just moving it to a new area. Or to a new machine either for archive or for having a home/work/travel setup. Everything should be referenced to the location of the directory that the mcp file is in.

I do this all the time to keep a 'core' project, then break away to what I want it to do for a specific project. My 9S12 stuff uses essentially a different application on each flash page. Eventually I'll get it debugged to where I can make it work acceptably then I go back and make the mods to my core and verify nothing broke with existing programs, then just copy in that new flash page and I have an additional project. I also modify my builds so that for deliverables, I just flag which of the flash pages get built to ship. Once things are incorporated into the core project, then branch project is deleted and all future support is to core.

There are a few variant projects that stay separate, and eventually build their own little universe of sub-projects.

Just remember, you have to copy the ENTIRE structure.

Message Edited by mke_et on 2007-08-19 08:44 AM
0 Kudos

355 Views
admin
Specialist II
Thanks for the advice.  I will give it a try.
0 Kudos

355 Views
J2MEJediMaster
Specialist I
As mke_et advised, you just copy the entire project directory that encloses the .mcp file and the rest of the project's files/directories. In addition, after you make the copy, you might want to issue the following commands in the IDE:

1) Project | Reset Project Entry Paths
2) Project | Re-search for Files

These two commands make the CW IDE "forget" the previous file path information used to build the program, and forces it to reconstruct this information by searching the existing directory. I'd then rebuild the project from scratch (Project | Remove Object Code..., Project | Make), to confirm that the IDE was able to sort things out on its own. If you experience problems, then you may have to tinker with the settings in the Access Paths preferences panel.

---Tom
0 Kudos