How do I generate an .ipr file?

So you might be thinking, what?  How could you possibly not know that?  ;)  Bear with me a sec.  So I have a largist project structure that I'm working with.  It consists of quite a few modules.  I'd like to be able to "carry" this structure somewhere else fairly easily, or make a copy of it and have that copy easy to work with.  Sounds easy enough.  Well, I believe the key piece I'm missing at the moment is the .ipr file.  I can not find any sign that IntelliJ created one for me.  I suspect it has something to do with how I built the project space, but then again . . .   I mean the space as-is is working just fine for me.  No problems there.  But I want to effectively branch the entire structure to work on another concept and without that .ipr file, I can't just copy the structure, open the new .ipr file, and go.  So--- is there any way to force IntellIJ to create the .ipr file if it hasn't already created one?  

I know this sounds a tad bizarre -- the problem is I am having trouble coming up with the right words to describe my scenario.  I'm hoping this will generate something I can work with or something I can at least provide more details on.

I more or less created this structure from a series of VCS checkouts and .iml files.

2 comments
Comment actions Permalink

I am not sure I understand, but perhaps you used the directory based project format when you created your project. That would mean your project settings are stored in a .idea directory. There is no other way a IntelliJ IDEA project can work without an *.ipr file, as far as I know.

Another option might be that the ipr file is stored in some other directory than your project. If you close your project and then hover your mouse cursor over the project name in the File > Reopen menu, the path of the project file is shown in the status bar (in IntelliJ IDEA 10 at least).

Hope that helps a little,
Bas

0
Comment actions Permalink

Aha!  I do have a .idea directory.  And that would explain why I wasn't able to just copy the project based off where that .idea folder is.  Hrm.  I don't really know how I got to that instead of having a .ipr, but at least I know what I'm looking at now.  =)  I may rebuild my project space at some point so that it is better behaved.  Thanks!

0

Please sign in to leave a comment.