Move existing project from one drive to another

Hi

Using IntelliJ 6.04.

I have several projects which were located, until this weekend, on a separate drive. I've decided to move these back to my main drive and am unsure exactly which IDEA files to edit (and safely) without causing problems.

What makes this easier is that the projects are located at the same relative location on the drive; the difference is only in the drive letter (this is Windows). Thus instead of "G:\projects\xyz" they will be located at "d:\projects\xyz".

I haven't found any docs that address this specifically. I assume I have to do a search-replace on .ipr, .iws and .iml files? Is this safe (assuming IDEA isn't running)? Any gotchas?


Thanks
Patrick

4 comments
Comment actions Permalink

Patrick,

By default all references under your project dir are saved in related
format. So there's no need to change anything if you move your project.
If you have references outside your project, there's an explicit option
to save them relatively too.

0
Comment actions Permalink

Just to be sure, you could also use a path variable to set the drive root
and just change that path variable offline (in config\options\path.macros.xml
in the IDEA settings directory) when you move the project.

--Mike


0
Comment actions Permalink

AFAIK search and replace in those files is save (at least I use it sometimes), but if your files are placed relative to project directory, then see Mike's comment.

0
Comment actions Permalink

I've confirmed that I was able to move the projects from one drive to another without renaming any directories within the IDEA files. Thanks for the responses!

Patrick

0

Please sign in to leave a comment.